HOW CAN YOU FORCE GARBAGE COLLECTION?

Anurag Sharma

Total Post:19

Points:95
Posted by  Anurag Sharma
Java 
 1099  View(s)
Ratings:
Rate this:
  1. Anurag Sharma

    Post:19

    Points:95
    How can you force garbage collection?

    we can't force GC, but could request it by calling System.gc(). JVM does not guarantee that GC will be started immediately

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!