Science, asked by dasscool918, 1 year ago

What is String Pool in java?

Answers

Answered by taniya55555
1
Here is your answer buddy,

As the name suggests, String Pool in java is a pool of Strings stored in JavaHeap Memory. We know that String is special class in java and we can createString object using new operator as well as providing values in double quotes.

Hopr this helps you.
Be Brainly.
Answered by Oreki
9

String Pool is a storage area in Java heap. To decrease the number of String objects created in the JVM, the String class keeps a pool of strings.

Each time a string literal is created, the JVM checks the string literal pool first.

Similar questions