Hi,
I am a newbie to
Java. I know that whenever the jvm encounters a
string literal in a program, it checks the string literal pool if the same string literal object exists in the string pool. But since string pool contains only a reference to the string object in the heap, how will it identify if the same string object already exists?
It would help me to resolve my doubt to a great extent if anyone can explain me in detail the process of
How a string is checked in string pool for existing string object with the new literal encountered
Thank you
sdwork