Home > DeveloperSection > Interviews > Can multiple catch blocks be executed?

Posted on    October-25-2010 12:00 AM

 C# C# 
 2 Answer(s)
  1196  View(s)
Rate this:

Uttam Misra

Total Post:54

Posted on    October-30-2010 12:00 AM

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

Shankar M

Total Post:3

Posted on    February-23-2013 1:00 AM

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.

Don't want to miss updates? Please click the below button!

Follow MindStick