1.

How Can We Request Jvm To Start Garbage Collection Process?

Answer»
  • We have a method called gc() in SYSTEM class as static method and also in Runtime class as NON static method to request JVM to start garbage collector execution.
  • System.gc();
  • Runtime.getRuntime().gc();



Discussion

No Comment Found