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
String pool is nothing but a storage area in Java heap where string literals stores. It is also known as String Intern Pool or String Constant Pool. It is just like object allocation. By default, it is empty and privately maintained by the Java String class.
brindha18 Answered question September 7, 2023
