338 B
338 B
parents | |
---|---|
|
final String s1 = "test";
final String s2 = "test";
final String s3 = new String("test");
final String s4 = "te" + "st";
System.out.println(s1 == s2);
System.out.println(s1 == s3);
System.out.println(s2 == s4);
System.out.println(s3 == s4);