CSC300 / CSC402: Boxing [11/24] 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