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?

Answers were Sorted based on User's Feedback



Can multiple catch blocks be executed?..

Answer / senthil kumar

No.We may have the multiple catch block.Every catch block
has the different exception.when code found any error
suitable exception will be fired.but only one catch block
executed.

Is This Answer Correct ?    20 Yes 1 No

Can multiple catch blocks be executed?..

Answer / daniel

No, once the proper catch code fires off, the control is
transferred to the finally block (if there are any), and
then whatever follows the finally block.

Is This Answer Correct ?    16 Yes 3 No

Can multiple catch blocks be executed?..

Answer / 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

Can multiple catch blocks be executed?..

Answer / guest

It is possible to use more than one specific catch clause
in the same try-catch statement. In this case, the order of
the catch clauses is important because the catch clauses
are examined in order. Catch the more specific exceptions
before the less specific ones.

source: msdn

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More C Sharp Interview Questions

Explain how can I get around scope problems in a try/catch?

0 Answers  


When should I throw an exception?

0 Answers  


What Are The .Net Object

2 Answers   IMB, Reliance,


What is difference between assembly and namespace?

0 Answers  


Structs are largely redundant in c++. Why does c# have them?

0 Answers  


List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.

0 Answers  


What is the difference between an integer and int?

0 Answers  


In which format you can pass the value in the sleep function?

0 Answers  


What is exe in c#?

0 Answers  


int i,string s, String s1 Which is valuetype which is refrence type.

6 Answers   Synechron, Sytel,


What are immutable types in c#?

0 Answers  


How the versioning applies to Assemblies or can you explain version numbers?

0 Answers   CitiusTech,


Categories