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 execption from catchblock

Answer Posted / praseetha sandeep

yes, we can throw...
catch(Exception e)
{
....
thow e
}

you can also throw new exceptin of different type
catch(IOException c)
{....
throw new FileNotFoundexception(filename)
}

we can also do like
catch(IOException c)
{
throw new FileNotFoundexception(filename,c)
}

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is post back c#?

970


What I can do with c#?

991


What is the full form of GAC? Explain its uses?

1057


Name the method of servicebase class?

1054


What is a event in c#?

937


List the differences between method overriding and method overloading?

1028


Why do we use abstraction in c#?

943


How to use the sreamReader class to read form a text file?

1037


If you define a user defined data type by using the struct keyword, is it a value type or reference type?

937


Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?

987


Why do we need nullable types in c#?

1220


What is a method signature?

1041


How do you determine whether a string represents a numeric value?

977


What is singleordefault?

953


How many constructors can a class have in c#?

956