Dynatrace Interview Question

Difference between heap and stack in java