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 the difference between integer and double?
What is a interface in c#?
What is a linq in c#?
Should I use double or float?
Which is faster hashtable or dictionary?
What are the Uses of CLR
Why c# is called type safe language?
What is meant by collections in c#?
What is writeline in c#?
What does .length do in c#?
What is private constructor c#?
What is the meaning of int parse in c#?
What is difference between ienumerable and list?
Are enums static c#?
How is exception handling implemented in c#?