Pregunta de entrevista de Capgemini

How memory is managed in JAVA programming?