Pregunta de entrevista de Cloudera

What does garbage collector do in Java