Pregunta de entrevista de CIA

Difference between heap and stack in Java