When is the object B in the following code eligible for garbage collection? (a) After line 5

Question:

When is the object B in the following code eligible for garbage collection?void start () { A a new A(); Bb = new B (); a.s (b); = b = null; /* Line 5 */ a = null; /* Line 6 */

(a) After line 5

(b) After line 6

(c) After line 7

(d) There is no way to be absolutely certain.

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

Step by Step Answer:

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