Can multiple catch blocks be executed?

Answer Posted / senthil kumar

No.We may have the multiple catch block.Every catch block
has the different exception.when code found any error
suitable exception will be fired.but only one catch block
executed.

Is This Answer Correct ?    20 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is native image generator (ngen.exe)?

665


How do I unload an application domain?

526


What is an event in c#?

501


How would you describe encapsulation in c#?

486


How to assign Null value to Var?

547






What is data reader in c#?

600


What is serialization and deserialization in c# with example?

456


Can enum be null c#?

523


Can we have only “try” block without “catch” block in c#?

477


What is the c# equivalent of c++ catch (…), which was a catch-all statement for any possible exception? Does c# support try-catch-finally blocks?

515


Is double a decimal?

520


How long does it take to get a loop recorder put in?

464


How can I get around scope problems in a try/catch?

480


What is the and operator in c#?

493


How does insertion sort work?

513