Can multiple catch blocks be executed?

Answer Posted / guest

It is possible to use more than one specific catch clause
in the same try-catch statement. In this case, the order of
the catch clauses is important because the catch clauses
are examined in order. Catch the more specific exceptions
before the less specific ones.

source: msdn

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why array is faster than arraylist in c#?

483


What is dao in c#?

484


What is the difference between static class and abstract class in c#?

456


Define c# i/o classes? List the commonly used classes?

538


How to use nullable types in .net?

561






What is callback function in c#?

523


What is gac? How to put assembly in gac?

547


Can we override main method in c#?

474


What is a method c#?

468


Define an assembly in .net?

515


What is the CTS, and how does it relate to the CLS?

545


What is desktop example?

485


What are the Types of JIT and what is econo-JIT

792


What are controls in c#?

466


Why do we use static class in c#?

488