What type of garbage collection does a System.gc() do?- Among various types of garbage collections, the System.gc() performs an explicit collection of garbage calls.
- It runs the garbage collector.
- When this method is called the Java Virtual Machine expend the effort for recycling unused objects in order to make the memory occupy for quick reuse.
The other garbage collection types are:
1. Throughput Collector. 2. Concurrent Low Pause Collector. 3. Incremental Low Pause Collector.
|