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
How to create multi-dimensional array?
Why do we use 0?
What are winforms in c#?
Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.
What is the components of window?
Explain the term inheritance in C#.
What is uint16?
Difference between call by value and call by reference in C#?
How do I create a multilanguage, single-file assembly?
Define satellite Assembly in .NET?
What are virtual classes in c#?
What are Uses of CLR
Explain the process of polymorphism with an example?
Explain the mechanism of VB.NET/C# achieve polymorphism?
What do constructors do in c#?