Pregunta de entrevista de Dynatrace

Difference between heap and stack in java