posted 20 years ago
I think the answer should be option C. There are two objects which are eligible for garbage collection.
They are the ones which are generated when i=0; and i=1; the object created when i=2; has reference t and obj.
Hope that helps you.
[ November 08, 2004: Message edited by: Jay Pawar ]
Cheers,<br />Jay<br /> <br />(SCJP 1.4)<br />Heights of great men were not achieved in one day, they were toiling day and night while their companions slept.