On a slide in this Presentation on Project Valhalla (around 4:00) i stumbled across this Java gotcha:
Integer.valueOf(42) == Integer.valueOf(42);
BUT
Integer.valueOf(420) != Integer.valueOf(420);
Can somebody explain?
On a slide in this Presentation on Project Valhalla (around 4:00) i stumbled across this Java gotcha:
Integer.valueOf(42) == Integer.valueOf(42);
BUT
Integer.valueOf(420) != Integer.valueOf(420);
Can somebody explain?