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

State two different types of access modifiers.

747


without modifying source code if we compile again, will it be generated MSIL again?

674


Can fields inside a class be virtual?

720


Can we set image Source dynamically using C# in WPF application?

844


What is generic and non generic collections in c#?

606


Can scriptable objects have methods?

666


Which is the base class in c#?

680


Where is the main method in c#?

721


What is a thread c#?

665


How does one compare strings in c#?

725


Why do we use classes?

656


Can constructor have return type c#?

804


In .NET how can you solve the DLL Hell problem?

839


What are the benefits of using the aggregate method in linq?

696


What is constants in c#?

574