1.EXCEPTIONS HANDLING 2. EXCEPTIONS HANDLING An exception is an abnormal condition that arises in a code sequence at run time. In other words, an exception is a run-time…