user image

Preeti Tripathi

Job Interview Skills
English
2 years ago

Question 309. How Can I Find Out What The Garbage Collector Is Doing?

user image

Abhishek Mishra

2 years ago

Using Runtime. getRuntime(). gc() method: Runtime class allows the application to interface with the JVM in which the application is running. Hence by using its gc() method, we can request JVM to run Garbage Collector.

Recent Doubts

Close [x]