Hi ranchers:
I have a question regarding garbage collection. This question is on
ExamLab's Diagnostic Exam and I don't know why the actual answer is given.
How many objects are eligible for garbage collection after executing c.aob = null; ?
Options are 0,1,2,3,4,5 and 'Cannot determine'. Correct answer is 2 and the explanation is 'Draw a diagram'. I have made my diagram and I still think just 1 object is eligible for GC. Can anyone please explain to me why 2 objects are eligible for GC?