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
Differentiate between dataset and datareader?
When would you use generics in your code c#?
How can we sort the elements of the array in descending order?
What is type cast in C#?
Which compiler switch creates an xml file from xml comments in the files in an assembly?
Why static constructor is parameterless in c#?
Wcf and what is difference between wcf and web services?
Can we customize the serialization process?
Is as operator in c#?
How to create events for a control? What is custom events? How to create it?
What are the advantages of interface in c#?
Write a short note on interface?
Whats an assembly? Describe the importance of assembly?
can you create a function in c# which can accept varying number of arguments
What are Memory foot print of an exe?