Deloitte interview question

difference between stack and heap memory in java?