Originally posted by Ankur Sharma:
Pls correct me if I am wrong.
OK: you are wrong. A String literal represents a java.lang.String object which lives in the heap like any other
Java object. A
reference to that String is stored in the literal pool, which is just a hashed set of references; it's
not a special area of memory in which objects can be allocated (despite the fact that there are apparently any number of low-quality Java texts that say something to the contrary!)
:roll:
I hope you will now answer me a question: many people seem to use this smiley incorrectly. I don't understand why you've used it here: can you explain to me what you intended for it to mean?