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 static constructor is parameterless in c#?

599


What is thread.sleep()?

516


What Is A Satellite Assembly?

542


What is the difference between struct and class in c#?

478


How do you escape in c#?

506






What do you mean by expression tree?

450


What is a trace and asset? Explain some differences?

703


Why do we need generics?

519


Are c# constructors the same as c++ constructors?

532


Explain the difference between .net and c#?

500


What is string [] args in c#?

547


Can we inherit sealed class in c#?

471


write a C# Program add two matrix ?

577


What is the compiler of c#?

495


Can I use parseint?

488