CSC300: Boxing [12/23] Previous pageContentsNext page

Integer x = 3000;
Integer y = 3000;
x=3000, y=3000
                  x==y : false
   Objects.equals(x,y) : true
           x.equals(y) : true
eqi01

Previous pageContentsNext page