How many catch blocks can be there for a single try block?

Answer Posted / gladiator

There can be any number of catch block for a single try
block.

However only the catch block encountered first on the call
stack that satisfies the condition for the exception will
be executed for that particular exception, rest will be
ingnored.

Is This Answer Correct ?    69 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who benefits from ajax?

587


What are value types and reference types?

547


What is difference between sleep () and wait ()?

488


How do you create dlls in .NET

570


What is the full form of GAC? Explain its uses?

572






What do you know about WM_CHAR message?

569


Is c# good for games?

478


Why are local variables stored in stack?

554


How to put assembly in gac?

541


What is meant by console programming?

475


What is ildasm and obfuscator in net?

540


if you do have a stack overflow profile.what is your ranking?

1480


Does constructor return any value in c#?

497


What are the two uses of a ‘using’ statement in c#?

474


Does unity require coding?

514