Can multiple catch blocks be executed?

Answer Posted / kumarraju

Not Executed Multiple catch blocks, exception raised then
corresponding catch block only executed, after that finally
block executed. In case Exception is not raised then
finally block executed.

why you are writing multiple catch blocks than
one catch blocks?
Ans: you does not know what the exception raise, then you
are excepting some exceptions thats only you write multiple
catch blocks.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the three types of predicates?

450


How is lazy loading achieved?

489


What are immutable types in c#?

479


What is as keyword in c#?

569


What is the difference between static class and sealed class in c#?

461






What is the use of ienumerable in c#?

543


Is java better than c#?

510


Tell me the difference between call by value and call by reference.

530


What is a dictionary in c#?

489


What operators can be used to cast from one reference type to another without the risk of throwing an exception?

511


What is the use of console readline () in c#?

472


Explain the advantage of using system.text.stringbuilder over system.string?

463


What is the difference between package and interface?

489


How many root nodes are there in an xml document?

442


Is array thread safe c#?

474