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 ‘is-a ‘ relationship in java?

0 Answers  


Can we have more than one package statement in source file ?

0 Answers  


What does n mean?

0 Answers  


What is a singleton puppy?

0 Answers  


How big is a gigabyte?

0 Answers  


What is return code?

0 Answers  


What is time complexity java?

0 Answers  


What is Java Classloader?

1 Answers   Phantom Technologies,


What error occurs if a try-catch-finally statement sequence does not have a catch clause?

4 Answers  


who can we create the object of a class? in how many ways we can create it (max 5)

2 Answers  


Can we create constructor in abstract class ?

0 Answers  


Is it possible to compare various strings with the help of == operator? What are the risks involved?

0 Answers  


Categories