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

What is the data encapsulation?

645


What is the difference between ienumerable and enumerator?

656


Why do we use namespace in c#?

702


Explain what is copy constructor?

778


what is full assembly reference

725


What is callback in c#?

653


What is concrete class in c#?

650


What is strongly typed in c#?

663


Is the following code legal?

757


In which situation(s), the use of "Delegate" is a good idea?

750


What is difference between new and override in c#?

627


What is the difference between serialization and deserialization in c#?

643


What does it mean to override a method?

646


What is wcf c#?

715


What are the Types of compatabilities and explain them

700