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 / chandra sekhar

In Throws, what ever the exception you are declaring are
handle 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.

I think the above makes sense.

Is This Answer Correct ?    45 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a constructor call the constructor of parent class?

982


How to implement a multithreaded applet?

2617


Why call by value prevents parameter value change?

1024


Which access specifier can be used with class ?

951


Why java applets are more useful for intranets as compared to internet?

1016


Can we override private method?

1046


What are the types of methods in java?

1050


What is the full form of jpeg?

912


How do you reverse a word in java?

1005


What is java used for?

979


What is the purpose of the return statement?

990


Is set ordered in java?

949


From the two, which would be easier to write: synchronization code for ten threads or two threads?

1004


Can we use a default constructor of a class even if an explicit constructor is defined?

1056


Is java hard to learn?

868