Java - Strings and String Handling
Given the code below, what will be the output?
Why does this happen?
String s1 = "Java";
String s2 = new String("Java");
String s3 = s2.intern();
System.out.println(s1 == s2);
System.out.println(s1 == s3);
Why does this happen?
