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 does exclamation mark mean c#?
What is using keyword in C#?
How string definitions will prevent escaping on backslashes in C#?
What is difference between value and reference types in C#.NET
What is the benefit of using interface in c#?
Define multicast c# delegate?
How does bitwise work?
Why should I use interface in c#?
What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?
What is difference between const and static in c#?
Write down the c# syntax to catch an exception
What is delegates in c# and uses of delegates?
When Should You Call The Garbage Collector In .net?
What are Regex / regular expressions ?
How do you remove white spaces from a string?