Pregunta de entrevista de Pegasystems

How does the Java 8 G1 garbage collector work?