Hi Sunita,
Think the following 3 items are available for garbage collection:
str1 - set to 'null' in Line 2. Any object set to 'null' is eligible for garbage collection.
The literal strings "second string" and "third string" as they are no longer being referenced. (Not 100% sure of these, as they would be in the
string pool and I'm not clear on gc and the string pool).
------------------
Jane