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

throw:it is used to raise exception explicitly
that means it is use when a user defined exception is raised

throws:if a method is capable of throwing an exception but
it does not handle the exception that must be specified by
using "throws" class

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I right-justify a string?

1253


Explain the importance of throwable class and its methods?

1092


Can java object be locked down for exclusive use by a given thread?

1061


What are thread local variables?

1232


What are exception handling keywords in java?

1097


What is java in simple terms?

1055


How can I become a good programmer?

1029


What is integers and example?

1051


Does java vector allow null?

1008


How dead lock situation occurs in java and how you can identify it?

1045


what is method reference in java 8?

1092


what is ststic with example

2121


What is parameters example?

1091


how many types of Inheritance?

1215


What is lambda in java?

1159