How do you find GC resulted due to calling System.gc()?

Question:

How do you find GC resulted due to calling System.gc()?

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

Step by Step Answer:

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