Correct Answer - Option 3 : The catch block
Concept:
An exception is an unexpected event which occurs during run time which disrupts the normal flow of execution. Example: division by zero.
There are two blocks in this: try and catch block.
Explanation:
try block:
It contains set of statements where an exception can occur. It is always followed by a catch block.
catch block:
In this block, exceptions are handled. Additional information sent when an exception is thrown is placed in this block. A single try block can have multiple catch blocks. Throw keyword is used to transfer control from try block to catch block.
syntax:
try
{
// statement that causes exception
}
catch
{
//statements that handle exception
}