|
no.
String literals are a special case. whenever you have a double quoted string, it gets created in the string pool. these are not eligible for normal garbage collection.
the details are a little more than you need to know right now, but basically:
Strings are never changed. new strings can be created, and references re-assigned to them.
|