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


Please Help Members By Posting Answers For Below Questions

What is using keyword in C#?

570


What is data binding with example?

499


What is the difference between method and function in c#?

447


What are strong name assemblies?

562


What is clr namespace?

492






What is difference between dictionary and hashtable in c#?

435


Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?

513


Why we need get set property in c#?

543


What is the difference between first and firstordefault?

430


Do events have return type c#?

510


What is cookies c#?

485


What sort algorithm does c# use?

513


what is a static constructor?

674


Write a program in c# to find the angle between the hours and minutes in a clock?

489


Define a jagged array in c#?

487