Originally posted by Gitesh Ramchandani:
Anything that is object and "only object" will be eligible for Garbage collection.
No !!! String literals are objects.
Unlike most objects,they always have a reference to them from the String Literal Pool. That means that they always have a reference to them and are, therefore, not eligible for garbage collection.
Strings, Literally