HCLTech interview question

What is heap and stack memory in Java How to handle exceptions