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 / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between as and is operators in c#?

869


How can we set the class to be inherited, but prevent the method from being over-ridden?

916


What is the difference between Static, Const and read only?

1021


What is keywords in c#?

833


What is the difference between public, static, and void?

851


Can we have only “try” block without “catch” block in c#?

800


Which control cannot be placed in mdi?

928


Which compiler switch creates an xml file from xml comments in the files in an assembly?

944


What is an example of delegation?

858


How do I declare inout arguments in c#?

886


What is callback function in c#?

868


What is xor operator in c#?

888


How can I get the ascii code for a character in c#?

1000


What is .cshtml file?

879


What type is string in c#?

816