Javarevisited
Published in

Javarevisited

What Does String Pool Mean in Java?

Know about the String Pool in Java and how objects are stored and retrieved from the String Pool.

String Pool Example with the intern() method

In this article, I’m going to cover String Pool and the number of objects created when double quotes(“ ”) and the new operator is used. This is one of the most asked interview questions for java and hence you should clear it thoroughly.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store