CAN MULTIPLE CATCH BLOCKS BE EXECUTED?

Monaj Singh

Total Post:48

Points:240
Posted by  Monaj Singh
C# 
C#
 1243  View(s)
Ratings:
Rate this:
  1. Pushpendra Singh

    Post:241

    Points:1205
    Can multiple catch blocks be executed?

    No. Multiple catch block can not be executed.

    We may have the multiple catch block.Every catch block
    has the different exception.when code found any error
    suitable exception will be fired but only one catch block
    executed.

Answer

NEWSLETTER

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