Pregunta de entrevista de Hudson River Trading

How does Java garbage collector work?