Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

What is Garbage Collection?

Category: Java

Garbage Collection is the process of looking at heap memory, identifying which objects are in use and which are not, and deleting the unused objects. In Java, process of deallocating memory is handled automatically by the garbage collector.
We can run the garbage collector with code Runtime.getRuntime().gc() or use utility method System.gc().

Leave a Reply

Your email address will not be published. Required fields are marked *