Pergunta de entrevista da empresa Pegasystems

How does the Java 8 G1 garbage collector work?