Ankur kothari wrote:
am getting the answer false..but my friend is getting true on his computer....
what according to you be the answer?
It should be false. The integer cache doesn't apply to the valueOf method, that takes a
string. It applies to the valueOf() method that takes an int.
Henry