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
how to insert the data from the grid view to database table though button click.pls send the answer to mail id suri1319@gmail.com
What is a delegate? How can it works?
What do you mean by stack and heap in c#?
Can we have multiple threads in one app domain?
what is a constructor? What is a destructor?
What are static and dynamic variables?
Why do we use namespace in c#?
What is ildasm and obfuscator in net?
What is verbatim string?
How we convert private assembly into public assembly?
What is a sealed class?
What are synchronous and asynchronous operations?
How to use nullable types in .net?
Is it possible to inherit multiple interfaces?
Why do we need delegates?