CSC300: Integer Constructor (Deprecated) [18/23] Previous pageContentsNext page

Integer x = new Integer(30);
Integer y = new Integer(30);
x=30, y=30
                  x==y : false
   Objects.equals(x,y) : true
           x.equals(y) : true
eqi07

Previous pageContentsNext page