In this article I’m going to cover String Pool and no of objects created when double quotes and new operators are used .This is the most asked interview question for java and hence you should clear it thoroughly .

Java String pool example

What is String Pool in Java ?

It is Pool of strings stored in heap memory . All the strings created are stored in this pool if they do not already exist in the pool.

#java #string-pool #coding #programming #string

What does String Pool mean in Java ?
1.35 GEEK