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

what is type of statement in jdbc connection?

3 Answers  


Why is java so important?

0 Answers  


What are static initalizers in java ?

0 Answers  


placement papaers of spring computing technology

0 Answers   Spring Computing Technologies,


Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

0 Answers  


what is deadlock? : Java thread

0 Answers  


What is clipping and repainting and what is the relation between them?

1 Answers  


How we can run a jar file through command prompt in java?

0 Answers  


How to prevent a field from serialization ?

2 Answers  


What modifiers can be used with a local inner class?

2 Answers  


Why javac is not recognized?

0 Answers  


What are implicit objects in java?

0 Answers  


Categories