← Back to Java

Types of Garbage Collectors

Javajava

The Question

What are the different types of garbage collectors in Java?

What a Strong Answer Covers

  • Serial = single-threaded stop-the-world
  • Parallel = multi-threaded high throughput Java 8 default
  • G1 = region-based Java 9 default large heaps
  • ZGC = ultra-low latency Java 11
  • Shenandoah = concurrent compaction

Related Questions

  • JVM vs JRE vs JDK
  • Java Platform Independence
  • How JVM Works
  • Main Features of Java
  • public static void main

Practice This Question

Get AI-graded feedback on your answer with follow-up probes on weak points.

Take the Free Assessment
GrindQuestionsAITechnical interview assessment
TermsPrivacyAbout