Skip to content

Tag: autoboxing

Weird Integer boxing in Java

I just saw code similar to this: public class Scratch { public static void main(String[] args) { Integer a = 1000, b = 1000; System.out.println(a == b); Integer c = …