Default garbage collector for Java 8

Code Junkie picture Code Junkie · Oct 19, 2015 · Viewed 77.8k times · Source

What is the default garbage collector for Java 8?

When I check the JMX Beans, they reveal it to be the parallel collector for the new generation and the old serial collector for the old generation.

Answer

x4444 picture x4444 · Apr 19, 2017

Default garbage collectors:

  • Java 7 - Parallel GC
  • Java 8 - Parallel GC
  • Java 9 - G1 GC
  • Java 10 - G1 GC