1
JavaBeginner#strings
A special memory area in the heap where the JVM stores unique String literals for reuse, avoiding duplicate objects. Strings created via new bypass the pool unless intern() is called explicitly.
String a = "hello"; // goes into pool
String b = "hello"; // reuses pooled reference
String c = new String("hello").intern(); // forces c into pool
a == b; // true
a == c; // true