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 data encapsulation?
how encapsulation is implemented in c#
What is the advantage of generics in c#?
What is scaffolding in c#?
What do you mean by for each loop?
What do you understand by the terms datareader object and dataset object?
Can a struct be null?
what is a destructor?
What is the name of c# compiler?
Why are strings immutable c#?
Differentiate between static class and singleton instance?
What is hashtable c#?
Does c# support templates?
What is object type in c#?
Contrast between an interface and abstract class?