posted 18 years ago
I just downloaded JDK 1.5 Source code from Sun site. When i peeped into the Byte, Short, Integer, Long source code the range was -128 to 127
For Character the range is for anything less than <=127
But for Float, Double no caching is provided.
That is
Float f1=3.0F;
Float f2=3.0F;
System.out.println(f1==f2);
will produce false