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
What is the difference between firstordefault and first?
What is the difference between writeline and write in c#?
Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?
Define delegation in .net?
How many static constructors are allowed in a class?
What is the difference between string keyword and system.string class?
Is it possible to execute multiple catch block for a single try statement?
Explain copy constructor?
How do I start a program in c#?
What is definition in c#?
What is managed or unmanaged code?
How does inheritance work in c#?
What is a deadlock lock?
Define constructors
How can I process command-line arguments?