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

throws is used for throwing an exception from a method to
jvm, the jvm should handle it.where us throw is used when
user needs to raise his own exception.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we override protected method in java?

995


What is the effect of keeping a constructor private?

878


How can I right-justify a string?

1100


What is the purpose of an interface?

985


What is substring in java?

1129


How to stop a thread in java? Explain about sleep () method in a thread?

970


In java how do we copy objects?

1003


What are multiple inheritances? Is it supported by java?

891


What is the best way to findout the time/memory consuming process?

975


How is string immutable in java?

994


Why do we need wrapper classes?

1015


What does || || mean in math?

884


What is busy spin, and why should you use it?

1024


What is anti pattern in programming?

912


What is the purpose of nested class in java?

1017