At what point is the Bar object, created on line 6, eligible for garbage collection? (a) After

Question:

At what point is the Bar object, created on line 6, eligible for garbage collection?class Test { String f() { String s = new String(); /* Line 3 */ return s; } public static void main (String

(a) After line 8

(b) After line 9

(c) After line 4, when f() completes

(d) After line 10

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: