How can you force garbage collection of an object? (a) Garbage collection cannot be forced. (b) Call

Question:

How can you force garbage collection of an object?

(a) Garbage collection cannot be forced.

(b) Call System.gc().

(c) Call Runtime.gc().

(d) Set all references to the object to new values(null, for example).

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

Step by Step Answer:

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