CSC300 / CSC402: Object [5/24] Previous pageContentsNext page

Try java.lang.Object

Object x = new Object();
Object y = new Object();
x=java.lang.Object@8807e25, y=java.lang.Object@2a3046da
                  x==y : false
   Objects.equals(x,y) : false
           x.equals(y) : false
eqo01

Previous pageContentsNext page