Pregunta de entrevista de KnowRoaming

How is memory handled in Java?