String s1 = new String("abc");
String s2 = new String("abc");
System.out.println(s1 == s2);

Posted on by