At what point is the Bar object, created on line 3, eligible for garbage collection?
A. After line 8.
B. After line 10.
C. After line 4, when doBar() completes.
D. After line 11, when main() completes.
Answer:C
At what point is the Bar object, created on line 3, eligible for garbage collection?
A. After line 8. B. After line 10. C. After line 4, when doBar() completes. D. After line 11, when main() completes.