saloni jhanwar wrote:Yes, Constructor should run after that literal loading.
Actually, I would have thought that literal loading would be done at the time the
class is loaded, but I'm certainly no expert. I just can't see the point in wasting time knowing all there is to know about something that makes almost no difference to me as a programmer.
To me, about all the pool means is that you almost never need to use
new String(String), unless you specifically want a
clone of a String (indeed, if the supplied String is a substring, you'll get a "deep" clone).
Winston