Say you have three strings,
String s1 = "string one"; String s2 = new String("string one"); String s3 = "string one";
I know it is true that s1 == s2 is false, but I read somewhere that s1 == s3 is true. Is this correct? Why or why not?
s1 == s2
false
s1 == s3
true