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?

Answers were Sorted based on User's Feedback



Explain about throw keyword?..

Answer / vibhor shukla

throw is used to throw an exception from any part of the
program not necessarily the method only.

whereas throws is particularly used to throw an exception
arising out of the use of a method to the exception handler
which is the catch block..

Is This Answer Correct ?    15 Yes 1 No

Explain about throw keyword?..

Answer / 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

Explain about throw keyword?..

Answer / sabarish

in java , throw keyword is used to throw an exception which
cannot be trapped.

Is This Answer Correct ?    19 Yes 16 No

Explain about throw keyword?..

Answer / mandeswara rao

Before catching an exception it is must to be thrown first.
This means that there should be a code somewhere in the
program that could catch the exception. We use throw
statement to throw an exception or simply use the throw
keyword with an object reference to throw an exception. A
single argument is required by the throw statement i.e. a
throwable object.

Is This Answer Correct ?    5 Yes 2 No

Explain about throw keyword?..

Answer / rhietu negi

"Throw" keyword indicate that we forcefully want to thorow
an error

Is This Answer Correct ?    6 Yes 6 No

Explain about throw keyword?..

Answer / mahesh pyla

Throw is a keyword,which gives an indication to the calling
function to keep the called function with in try and catch
blocks for generating user friendly messages instead of
generating system error message.

Is This Answer Correct ?    3 Yes 3 No

Explain about throw keyword?..

Answer / ashima singh

The throw keyword is used when if a mehod is capable of
causing an exception that it does not handle.

Is This Answer Correct ?    1 Yes 3 No

Explain about throw keyword?..

Answer / sabarish

sorry guys..i thought its java...

Is This Answer Correct ?    5 Yes 12 No

Explain about throw keyword?..

Answer / sunil

throw keyword will throw an user defined exception

Is This Answer Correct ?    9 Yes 16 No

Explain about throw keyword?..

Answer / navin c. pandit

Hey guys don't confuse others if u don't know the actual ans.

The 'throw' keyword in C# throws a user defined exception.

Is This Answer Correct ?    7 Yes 15 No

Post New Answer

More C Sharp Interview Questions

Why do we use void in c#?

0 Answers  


If casting fails what type of exception is thrown?

0 Answers  


What is difference between encapsulation and abstraction in c#?

0 Answers  


Why we use get and set property in c#?

0 Answers  


How do you create multiple inheritance in C#?

5 Answers   Microsoft,


What is hashtable in c# net with example?

0 Answers  


Is c# strongly typed?

0 Answers  


Is comparator a functional interface?

0 Answers  


What's the c# syntax to catch any possible exception?

0 Answers  


What is the use of static in c#?

0 Answers  


How you will handle session when deploying application in more than a server? Describe session handling in a webform, how does it work and what are the limits?

3 Answers   Microsoft,


What is an xsd file?

0 Answers  


Categories