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 a float?
Why do we need a singleton class?
What is the purpose of escape sequence?
What is difference between dynamic and var in c#?
Define Virtual folder?
What is virtual class in C#?
What is the system namespace?
Explain manifest & metadata in c#.
What is difference between property and variable in c#?
Can abstract class have private constructor c#?
Name any three ways to pass parameters to a method in c#?
What is out int in c#?
What is c# and why it is used for?
Are string objects mutable or immutable?
What is an assembly qualified name