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?
What is the similarity between try and throw?

Answers were Sorted based on User's Feedback



What is the difference between throw and throws? What is the similarity between try and throw?..

Answer / giri

throw is used to throw an exception manually, where as
throws is used in the case of checked exceptions

Is This Answer Correct ?    4 Yes 1 No

What is the difference between throw and throws? What is the similarity between try and throw?..

Answer / amar

throw is a statement level.throws is a method level.
In manual exception handling,we can also use the throws to
handle the excepions by the jvm,insted of handling there.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

Explain reverse a linked list recursive java solution?

0 Answers  


What is the use of accept () method in java?

0 Answers  


What are the supported platforms by java programming language?

0 Answers  


How does a try statement determine which catch clause should be used to handle an exception?

2 Answers  


What is the use of volatile in java?

0 Answers  


there are some duplicate values in ArrayList, how U'll get that array with out duplicate?

4 Answers   CMC,


What is the maximum size of byte array in java?

0 Answers  


What is an abstract method in java programming?

0 Answers  


What do you mean by composition in java?

0 Answers  


Can we nested try statements in java?

0 Answers  


explain the concept of inheritance with an example?

9 Answers   Polaris,


Can you explain the Java thread lifecycle?

1 Answers  


Categories