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 using keyword in C#?
What is data binding with example?
What is the difference between method and function in c#?
What are strong name assemblies?
What is clr namespace?
What is difference between dictionary and hashtable in c#?
Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?
Why we need get set property in c#?
What is the difference between first and firstordefault?
Do events have return type c#?
What is cookies c#?
What sort algorithm does c# use?
what is a static constructor?
Write a program in c# to find the angle between the hours and minutes in a clock?
Define a jagged array in c#?