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

What is the difference between throw and throws?

Answer Posted / kanhaiya sharma

throws :- throws clause is used when programmer does
not want to handle to the exception and throw it out of a
method.

throw :- throw clause is used when programmer wants to
throw an exception explicitely and wants to handle it using
catch block. hence throws and throw is contradictory.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain different forms of polymorphism?

1150


What classes of exceptions may be caught by a catch clause in java programming?

1180


Explain about map interface in java?

996


What about method local inner classes or local inner classes in java?

1060


What is xslt in java?

979


What is void keyword?

1104


Is map ordered in java?

948


What is the difference between class & object?

1018


What is main method?

1041


How many bytes is a string?

1135


What is a parameter in simple terms?

999


Do I need java on my pc?

1052


Difference between ‘is-a’ and ‘has-a’ relationship in java?

1006


Is arraylist an object in java?

1165


What is the list interface in java programming?

1120