CSC300: String Constructor [8/23] Previous pageContentsNext page

String x = new String ("Hello");
String y = new String ("Hello");
x=Hello, y=Hello
                  x==y : false
   Objects.equals(x,y) : true
           x.equals(y) : true
eqs02

Previous pageContentsNext page