We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
public class Intern { public static void main(String[] args) { String s = new String("2"); String s2 = "2"; s.intern(); System.out.println( s == s2); // false System.out.println( s.intern() == s2); // true } }