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

What are variables in c#?

497


Describe the difference between inline and code behind - which is best?

558


Which are the access modifiers available in c#?

522


What is xml document how do you open it?

572


What is writeline in c#?

499






Who benefits from ajax?

592


Is list passed by reference c#?

479


What is serialization in unity?

505


What is exe in c#?

498


What is Dependency of Injection?

540


What are the benefits of using windows services:

552


Why do we use virtual methods in c#?

491


What is the meaning of extention?

486


What is variable in c#?

514


What sort algorithm does c# use?

513