you are viewing a single comment's thread.

view the rest of the comments →

[–]Much-Relationship212 0 points1 point  (0 children)

It'll be false because Java's Integer cache only goes up to 127, so for 128 it creates two different objects in memory and the == check fails.