Nagarro interview question

How the exceptions are handled in java?