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?

Answer Posted / ranganathkini

The 'throw' statement initiates an exception to be thrown
where as the 'throws' clause declares that the method is
expected to throw 1 or more checked execptions.

Is This Answer Correct ?    43 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the technique adopted to create an immutable class?

1036


What are the differences between getting and load method?

1066


Give few examples of final classes defined in Java API?

1113


What is maximum size of arraylist in java?

957


How does linkedlist work in java?

872


How to create an immutable class?

1035


How does arraylist work in java?

1037


What is the difference between preemptive scheduling and time slicing?

1003


What is an abstract class and what is it’s purpose?

907


Is there any difference between nested classes and inner classes?

1027


Why is it called boolean?

941


what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread

1069


Explain the inheritance?

923


What is private static class in java?

970


What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?

1038