Pregunta de entrevista de Hudson River Trading

How does Java implement garbage collection?