Pergunta de entrevista da empresa KnowRoaming

How is memory handled in Java?