There are four main garbage collectors available in current JVMs:
- serial collector(used for single-CPU machines)
- throughput (parallel) collector
- concurrent(CMS) collector
- G1 collector.
There are four main garbage collectors available in current JVMs: