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 we throw exception from catch block

Answer Posted / prosanta

yes,

follow this example-

static void Main(string[] args)
{
try
{
throw new Exception();
}
catch
{
try
{
Console.WriteLine("This is the 1st
exception");
throw new Exception();
}
catch
{
Console.WriteLine("This is the 2nd
exception");
Console.Read();
}
}

}




output:
This is the 1st exception
This is the 2nd exception

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is string passed by reference in c#?

852


Can I call a virtual method from a constructor/destructor?

832


When a switch is said to be congested?

930


Explain states of a thread in c#?

916


What is the difference between early binding and late binding in c#?

907


What is fcl in c#?

826


Can you pass parameters to destructors?

981


What is the use of table aliases?

851


Is inheritance possible in c sharp?

998


what is the index value of the first element in an array?

876


What is a Command Object in C#?

972


How do I register my code for use by classic com clients?

837


What namespace is list in c#?

860


For methods inside the interface why can’t you specify the accessibility modifier?

904


Where is the keyword void used?

893