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


Please Help Members By Posting Answers For Below Questions

What is the difference between const and static read-only?

496


What is .cshtml file?

495


What is console readkey in vb net?

641


Are cao stateful in nature?

474


What exactly is serverless?

422






Why objects are stored in heap in c#?

480


What is system predicate?

459


HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only

522


What are the applications of c#?

467


Where do I put dll files?

566


Illustrate serialization?

511


What is namespace in oop?

490


Can structs in c# have destructors?

549


What is cosole application?

571


What is datarelation c#?

461