Where will be the most chance of the garbage collector being invoked? (a) After line 9 (b)

Question:

Where will be the most chance of the garbage collector being invoked?class HappyGarbage01 { public static void main(String args[]) { HappyGarbage01 h = new HappyGarbage01 ();

(a) After line 9

(b) After line 10

(c) After line 11

(d) Garbage collector never invoked in methodA()

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

Step by Step Answer:

Related Book For  book-img-for-question

Advanced Java Programming

ISBN: 9780199455508

1st Edition

Authors: Uttam Kumar Roy

Question Posted: