A try block having 4 catch block will fire all catch block or not?

 Posted by Poster on 9/11/2009 | Category: C# Interview questions | Views: 7521

No, A try having more than one catch block will fire the first relevant catch block after that cursor will be moved to the finally block (if exists) leaving all remaining catch blocks.

So in all cases only one catch block will fire.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response