CAN MULTIPLE CATCH BLOCKS BE EXECUTED?

Pushpendra Singh

Total Post:241

Points:1205
Posted by  Pushpendra Singh
C# 
C#
 1251  View(s)
Ratings:
Rate this:
  1. Uttam Misra

    Post:54

    Points:270
    Can multiple catch blocks be executed?

    No,once the proper catch code fires off, the control is transferred to the finallyblock.

  1. Shankar M

    Post:3

    Points:15
    Can multiple catch blocks be executed?

    No, When an exeception occurs each catch handlers is inspected in the order and the first one

    whose type matches is executed and other catch handlers are bypassed.

Answer

NEWSLETTER

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