class Alone {
6. Alone r;
7. public static void main(
String [] args) {
8. Alone r1 = new Alone();
9. Alone r2 = new Alone();
10. Alone r3 = new Alone();
11. r1.r = r2; r2.r = r3; r3.r = r1;
12. r3 = null;
13. r2 = null;
14. r1 = null;
15. //do stuff that may make r1 refer to an object of Object class or it's 16. // subclasses
17. }
18. }
After which line does the first object become eligible for garbage collection?
A) Compilation Fails
B) Could not be determined
C) After line 14
D) After line 13
E) After line 12
Why is the answer C?