Is it possible to execute two catch blocks?

No, Multiple catch blocks can’t be executed. You are allowed to include more than one catch block in your program; however, it is not possible to execute them in one go. Whenever, an exception occurs in your program, the correct catch block is executed and the control goes to the finally block.

results matching ""

    No results matching ""