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 / amina awan

Multiple catch blocks will not be executed. But we can use multiple catch blocks for a try block. The respective catch block will get executed according to the error arises.

Is This Answer Correct ?    3 Yes 0 No

Can multiple catch blocks be executed?..

Answer / photon

No, When the Exception handled the Correct Catch Block
,After that the cursor is move to finally Block, the below
catch block was not handled.

Is This Answer Correct ?    1 Yes 0 No

Can multiple catch blocks be executed?..

Answer / guest

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 ?    0 Yes 0 No

Can multiple catch blocks be executed?..

Answer / vijay saxena

No,

try
{
int p = 0;
int t = 6 / p;
}
catch (ArithmeticException ex)
{
Console.WriteLine("Arithmetic Exception");
}
catch (Exception ex)
{
Console.WriteLine("General Exception");
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is difference between list and dictionary in c#?

0 Answers  


What is a base class in C#?

0 Answers   TryTechnicals Pvt Ltd,


Is c sharp open source?

0 Answers  


How big is an int in c#?

0 Answers  


How to override a function in c#?

0 Answers  


How do you type a null character?

0 Answers  


How will you allow a class to be inherited, but prevent the method from being over-ridden?

0 Answers   Siebel,


What Is A Satellite Assembly?

0 Answers   PUCIT, Siebel Systems,


If I want to override a method 1 of class A and in class b then how do you declare ?

4 Answers   MMTS,


What is datatable and dataset in c#?

0 Answers  


What is string empty?

0 Answers  


What is a partial class in c#?

0 Answers  


Categories