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
What is the difference between CONST and READONLY?
Why dependency injection is used in c#?
What are the three types of predicates?
Is enum a class c#?
How do partial classes work in c#?
What is the interface in c#?
Why do I get an error (cs1006) when trying to declare a method without specifying a return type?
What is sealed class in c#?
What is anonymous class in c#?
What kind of the information stored inside the assembly?
What is difference between var dynamic and object in c#?
What is tochararray in c#?
What do you mean by abstract class in c#?
Why should I use interface in c#?
What is the difference between iqueryable and ienumerable?