What are the different types of Garbage Collectors in JVM?
January 3, 2025
Serial GC: Single-threaded; suitable for small applications.
Parallel GC: Multi-threaded; balances throughput and latency.
CMS (Concurrent Mark-Sweep) GC: Reduces pause times; works concurrently.
G1 GC (Garbage-First): Divides the heap into regions; optimizes for large heaps.