Domanda di colloquio di Dynatrace

Difference between heap and stack in java