CSC300: Unboxing [12/24] Previous pageContentsNext page

Integer a = 3000;
Integer b = 3000;
int x = a.intValue();
int y = b.intValue();
x=3000, y=3000
                  x==y : true

Previous pageContentsNext page