Delete comment from: Java67
javin paul said...
Hello @Anonymous, the intern() method has no effect on existing object. Now, if you create another object with literal e.g. "intern" then same object is returned instead of creating a new one. See my post when to use intern() method of String in Java to learn more about intern
Jul 27, 2016, 8:37:56 AM
Posted to Difference between String literal and New String object in Java

