Pregunta de entrevista de Bloomberg

How does the java garbage collector work?