Nuacht

The string pool is a part of the heap used to store objects that represent string literals. If the JVM does not find another String object in the string pool with that value, then it will create a new ...
*Java can have a string pool because strings are immutable. Note : Using String () constructor or any other String function like substring (), concat (), replace () etc which internally uses String () ...