String
The String Pool (or String Constant Pool) is a special memory region within the heap where the JVM stores unique String literals. When you create a String using a literal, Java checks the pool first and reuses an existing object if the same value already exists, rather than allocating a new one.
Intermediate5 min

