class App1 public static void main String args String s1 abc String s2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
class App1 {
public static void main(String[] args) {
String s1 = "abc";
String s2 = new String("abc");
String s3 = "abc";
System.out.println(s1 == s2);
System.out.println(s1 == s3);
System.out.println(s1 == "abc");
}
}