IS IT POSSIBLE TO EXECUTE TWO CATCH BLOCKS?

Sumit Kesarwani

Total Post:782

Points:3910
Posted by  Sumit Kesarwani
C# 
C#
 1027  View(s)
Ratings:
Rate this:
  1. Sumit Kesarwani

    Post:782

    Points:3910
    Is it possible to execute two catch blocks?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!