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.
Liked By
Write Answer
Is it possible to execute two catch blocks?
Join MindStick Community
You have need login or register for voting of answers or question.
Sumit Kesarwani
19-Sep-2014You 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.