String Java=new StringBuilder (" ja "), append (" va "). The toString ();
String good=new StringBuilder (" go "), append (" od "). The toString ();
System. The out. Println (Java. Intern ()==Java);//false
System. The out. Println (good. Intern ()==good);//true
CodePudding user response:
Check the intern () method you will know that you use. Try equals
CodePudding user response:
See the JDK version
CodePudding user response:
Java already nearly built-in JVM
CodePudding user response: