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 difference between throw and throws in exception?

Answer Posted / ravikumar

Throws - what ever the exception you are declaring are
taken care by JVM. If it is a user defined exception in throws
block, JVM doesn't know when to throw that exception . For
this purpose we use Throw for a certain conditions/logic to
throw these user defined exceptions

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a case study a method or methodology?

850


What is the need of transient variables in Java ?

1029


What is java util list?

880


how are methods defined?

998


Difference between throw and throws?

1049


What is style and indentation?

955


Explain about static nested classes in java?

1027


Explain about arraylist?

1029


What is stringbuffer in java?

1006


What is local class in java?

1027


Does windows 10 need java?

1006


what are three ways in which a thread can enter the waiting state? : Java thread

952


What kind of variables can a class consist?

998


What are recursive functions?

988


What are the types of casting?

1006