Pergunta de entrevista da empresa Capgemini

How memory is managed in JAVA programming?