Ulf Dittmer wrote:
The hint is: "2" is a frequently requested value, while "2000" is not.
I am really sorry, but this does not make sense for ma at all. What is it "frequently requested value"? How should I know which one is and which is not?
Explanation in exam itself is not clear for me as well:
When the references i and eye in the pool are compared 2==2 results in true and 2000==2000 is false since it exceeds 127.
How 127 is connected to comparing Integer values?
How JVM proceed boxing and unboxing, so same Integer values are equal or not equal depending on how this values big or "frequently requested"?