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 are the important methods of java exception class?

1200


How can the checkbox class be used to create a radio button?

1079


What is rmi and steps involved in developing an rmi object?

1114


What is the purpose of default constructor?

1034


Is static variable stored in heap?

1049


Why is it important to initialize a variable?

1041


What is final variable?

992


What is object cloning in Java?

1145


What is string buffer?

988


What is treeset in java collection?

1008


What is the purpose of using the java bean?

1102


If system.exit (0); is written at the end of the try block, will the finally block still execute?

1159


What are the differences between the constructors and methods?

1177


What does singleton mean in java?

1055


What is arrays fill in java?

1058