Garbage Collection in Java Interview Questions
1. What is the purpose of garbage collection in Java, and when is it used ? The purpose of garbage collection is to identify and discard those objects that are no longer needed by the application, in order for the resources to be reclaimed and reused. 2. What does System.gc() and Runtime.gc() methods do ?
Garbage Collection in Java Interview Questions Read More »
