gzc426/Java-Interview

String s3 = new String("1") + new String("1"); s3.intern(); String s4 = "11"; System.out.println(s3 == s4); //false not true

youngboyvip opened this issue · 0 comments

public class HelloWorld {
public static void main(String []args) {
String s3 = new String("1") + new String("1"); s3.intern(); String s4 = "11"; System.out.println(s3 == s4);
}
}

image