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 “out” and “ref” parameters in c#?
How many bytes is an int in c#?
How to sort an int array in c#?
How do you name a variable in c#?
What are the types in c#?
What is helper method in c#?
What sort algorithm does c# use?
Explain the clr triggers?
What does console readkey do in c#?
Can arraylist hold primitive types?
Can we override interface method?
How do you create dlls in .NET
Is string a class in c#?
What is session variable in c#?
What is the use of the dispose method in C# ?