At what point is the Bar object, created on line 6, eligible for garbage collection?
A.after line 12
B.after line 14
C.after line 7, when doBar() completes
D.after line 15, when main() completes
Answer:B
At what point is the Bar object, created on line 6, eligible for garbage collection?
A.after line 12 B.after line 14 C.after line 7, when doBar() completes D.after line 15, when main() completes