While Javadoc says caching can be used, I just checked the implementation in my JDK (version 8), and caching is not implemented:
public static Float valueOf(float f) {
return new Float(f);
}
public static Double valueOf(double d) {
return new Double(d);
}
, . Integer, Long, Byte, Short Character ( ), , Double Float .