After line 8 runs, how many objects are eligible for garbage collection? (a) 0 (b) 1 (c)

Question:

After line 8 runs, how many objects are eligible for garbage collection?public class X { public static void main (String [] args) { X x = new X();  X x2 = m1 (x); /* Line 4 */ X X4

(a) 0

(b) 1

(c) 2

(d) 3

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: