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 language is arduino?

722


What is the full form of GAC? Explain its uses?

759


Is c# static or dynamic?

702


How can I create image pieces/sub image?

665


Can we override main method in c#?

692


How to transpose multi-dimensional array?

759


What are different types of classes in c#?

647


Can we make a Static Constructor Parameterized? Give Reason with your answer

756


Why do we use Design Pattern in C#?

780


What is string method in c#?

667


What is the use of delegates in c#?

640


What is the difference between struct and class c#?

704


What is difference between static and constant variable?

759


How do I create a single-file assembly?

690


What is datagrid c#?

647