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

What does args mean in c#?

905


Why do we need events in c#?

980


If you want to convert a base type to a derived type, what type of conversion do you use?

960


What is parameters in c#?

942


What is the difference between c and c sharp?

1004


Can a class be private in c#?

973


Define thread? Explain about multithreading?

966


Can var be null c#?

867


In .NET which is the smallest unit of execution?

1062


Can u list some style properties of List Box?

934


If dll and exe files are same it means you can deploy both the files in gac?

935


Explain more on CLR

1159


What is a nullreferenceexception?

1022


What is the use of return in c#?

952


What is the difference between icomparer and icomparable in c#?

940