Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 the difference between firstordefault and first?

961


What is the difference between writeline and write in c#?

902


Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?

1040


Define delegation in .net?

953


How many static constructors are allowed in a class?

987


What is the difference between string keyword and system.string class?

1155


Is it possible to execute multiple catch block for a single try statement?

1100


Explain copy constructor?

1188


How do I start a program in c#?

1041


What is definition in c#?

928


What is managed or unmanaged code?

1116


How does inheritance work in c#?

1178


What is a deadlock lock?

969


Define constructors

1003


How can I process command-line arguments?

1022