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 yield keyword?
What is different between Static Constructor and Private Constructor?
What are circular references?
What is boxing in c#?
What is console write in c#?
What is jagged array?
Can you inherit from a sealed class?
What is the difference between method and constructor in c#?
What is delegates in c# and uses of delegates?
What is difference between event and delegate in c#?
Int map to which .net types?
Is arraylist generic in c#?
what are the Disadvantages of vb
How many constructor can a class have?
Explain about WSDL