Dynatrace interview question

Difference between heap and stack in java