The Java heap’s string literal storage space is known as the string pool. It is also referred to as the String Constant Pool or the String Intern Pool. It resembles object allocation exactly. It is privately kept by the Java String class by default and is empty.
Vishalini.R Answered question September 7, 2023