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 are the three types of predicates?
How is lazy loading achieved?
What are immutable types in c#?
What is as keyword in c#?
What is the difference between static class and sealed class in c#?
What is the use of ienumerable in c#?
Is java better than c#?
Tell me the difference between call by value and call by reference.
What is a dictionary in c#?
What operators can be used to cast from one reference type to another without the risk of throwing an exception?
What is the use of console readline () in c#?
Explain the advantage of using system.text.stringbuilder over system.string?
What is the difference between package and interface?
How many root nodes are there in an xml document?
Is array thread safe c#?