String Pool
Learn String Pool (Object Memory, Java) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
6. Basic Concepts Strings Are Special in Java Strings are used so heavily in every Java program that the JVM has a dedicated optimization for them called the String Pool (also called the String Constant Pool or String Intern Pool). It's a special area in memory that stores unique String literals so identical text doesn't get duplicated over and over.