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 about accessibility modifier 'protected internal'?
What is difference between code access and role based security?
What do u meant by "SBI" of an object?
Which string method is used for concatenation of two strings in c#?
the c# keyword .int. Maps to which .net type?
Is array a collection c#?
What is console application with example?
What the different phase/steps of acquiring a proxy object in webservice?
What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?
What is polymorphism and its types in c#?
What is a delegate in c#?
What is difference between encapsulation and abstraction in c#?
Why do we use readonly in c#?
Can I use parseint?
What is string literal in c#?