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
Is c++ or c# better?
What is a decimal in c#?
What is a multi line comment?
Explain About .Net remoting
What is the use of convert toint32 in c#?
What is polymorphism c# example?
What is thread.sleep()?
if you do have a stack overflow profile.what is your ranking?
Is array passed by reference in c#?
Are all methods virtual in c#?
What exactly happens when we debug and build the program?
What is a jagged array?
What is ControlBox Propertie
What is parallel programming in c#?
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?