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...

Explain about throw keyword?

Answer Posted / tiger kumar

yes,its used to throw the user defined exception.

But its not always good habit to use throw exception.

Some times we can predict it will throw the exception.If we
know the error will come there in the earlier means why we
need to use the exceptions.we can solve it while writtting
code itself.

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Satellite Assemblies ?

997


What is a class in unity?

911


How can you prevent escaping on backslashes in C# with string definitions?

1244


Are c# generics the same as c++ templates?

936


What are extension methods and where can we use them?

890


What is a partial class. Give an example?

977


What's the implicit name of the parameter that gets passed into the set method/property of a class?

1001


What happens if a static constructor throws an exception?

951


What does convert toint32 mean?

961


What is satellite assembly? And steps to create satellite assembly?

1007


What do you mean by default constructor?

1098


4. Describe the process when we send a request URL? And who is responsible for that?

1988


What is the difference between struct and class c#?

995


Can we create instance of private class in c#?

908


Can we make a Static Constructor Parameterized? Give Reason with your answer

975