CSC300: Copying a Reference [19/23] Previous pageContentsNext page

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

Previous pageContentsNext page