CAN MULTIPLE CATCH BLOCKS BE EXECUTED?

Pushpendra Singh

Total Post:240

Points:1200
Posted by  Pushpendra Singh
C# 
C#
 1389  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.

      Modified On Mar-26-2018 05:36:33 AM
  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!