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 are virtual destructors?
Is lazy thread safe c#?
What are the different types of literals in c#?
In gridview in editmode if we want to display information in one combobox based on
How does aspect oriented programming work?
Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?
State two different types of access modifiers.
What is the difference between dll and lib?
If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?
Perfect Example Of While And Do-While Loop In C#.Net ?
Explain about Oops concept
Is system a class in c#?
What is form feed in c#?
What is local function?
Which is faster array or arraylist in c#?