Pregunta de entrevista de Cognizant

What's difference between new and old Java memory management