1.

What is an Exception ? Name two Exception handling blocks. 

Answer»

An exception is an event that .occurs during the execution of a program that disrupts the normal flow of instructions. 

The two exception handling blocks are try and catch. 

(i) The try block identifies a block of code in which an exception can occur. 

(ii) The catch block identifies a block of code, known as an exception handler that can handle a particular type of exception.



Discussion

No Comment Found

Related InterviewSolutions