Sring constant pool is a separate block of memory where the string objects are held by JVM. If a sting object is created directly, using assignment operator as: String s1 = “Hello”,then it is stored in
string constant pool.
string constant pool.