How many catch blocks can be there for a single try block?
Answer Posted / d.s naidu
Single try block can handle multiple catch blocks.Let
assume if you have 4 catch blocks for a single try block.
while excuting/debugging the code, if the exception raises
that will go the appropriate catch block and resolve the
problem by the programmer. the remaining 3 catch blocks
will raise , if those really having the exception as per
the code logic
Is This Answer Correct ? | 20 Yes | 4 No |
Post New Answer View All Answers
What is private class in c#?
Explanation on Generic?
What is thread in c#?
Is and as keyword in c# net?
Why do we Need of static class in c#?
Why reflection is used in c#?
Why do I get a security exception when I try to run my c# app?
Is namespace a class?
What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?
Is void a class?
What is assembly and dll in c#?
Can you mark static constructor with access modifiers?
What is xpath in c#?
What is a linked list c#?
Can a struct inherit from an interface in c#?