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
Explain the difference between and xml documentation tag?
What is Covariance and contravariance in C#?
What does char mean in c#?
What is the difference between Object and class adapters?
How do I register my code for use by classic com clients?
How to use session under class file of APP_Code folder?
What is the purpose of a constructor in c#?
What are logical operators in c#?
What is transparent caching with aop ?
Can abstract class have parameterized constructor?
What is selector c#?
What does xpath return?
Wcf and what is difference between wcf and web services?
What is the syntax for calling an overloaded constructor within a constructor?
What is parsing? How to parse a date time string?