I have some confusion with this code (source:http://examsguide.com/scjp/freequestions2.html [Q. 13]):
After line 6, how many objects are eligible for garbage collection?
Ans: 1
Ans: 2
Ans: 3
Ans: 4
None of the above
The correct answer is 2 (according to the site) but its not clear to me why its 2. Will you guys please explain me. Thanks in advance.