How many catch blocks can be there for a single try block?

Answer Posted / gladiator

There can be any number of catch block for a single try
block.

However only the catch block encountered first on the call
stack that satisfies the condition for the exception will
be executed for that particular exception, rest will be
ingnored.

Is This Answer Correct ?    69 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is dictionary a collection?

470


What are the three types of predicates?

454


Write a syntax for writing a event delegate.

491


What are abstract classes in c#?

484


What is static void main in c#?

502






What is difference between ilist and list in c#?

482


Explain About Global.asax

569


What are the different types of assembly?

564


How to create multi-dimensional array?

599


What is difference between float and decimal?

507


How many destructors can a class have?

593


Define method overloading in c#?

586


Why do we need static in c#?

509


What can we do to handle multiple exceptions?

553


What does writeline mean?

530