CSC300 / CSC402: 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
eqi09

Previous pageContentsNext page