StringPool is the area that the JVM uses to avoid the excessive generation of String objects.
These objects can be “recycled”, so you can (re) use them to avoid wasting too much memory ...
Consider the following example:
String s1 = "cat";
String s2 = "cat";
String s3 = new String("cat");
JVM , , s2 "cat", ( "s1"), , s1
