Quote:
I say none also. Everything is still in scope. When the only reference to the "Test" String object was removed (changed to refer to
null), scope had little to do with the situation. Were these regular objects, then the "Test" String object would indeed be eligible for garbage collection. As Ron alluded to, and as is pointed out in the conversation linked to by Anthony, the memory model used for Strings is a bit different than that used for other
Java objects.
[ September 20, 2002: Message edited by: Dirk Schreckmann ]