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 difference between throw and throws in exception?

Answer Posted / srinath

throws keyword is used 2 delegate the responsibility of
exception handling 2 caller method where as throw keyword
used 2 hand over the creted customised excetion object 2
jvm 2 handle the excepion.

Is This Answer Correct ?    33 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you pass by reference in java?

947


Can memory leak in java?

990


What is the difference between error and an exception?

1077


Why for each loop is used?

971


How do you remove an object from an arraylist in java?

914


In case of inheritance what is the execution order of constructor and destructor?

1069


What 4 doubled?

932


Does java have extension methods?

921


How do you achieve singleton?

911


What will happen if static modifier is removed from the signature of the main method?

919


Can a list be null in java?

994


What are latest features introduced with java 8?

1021


What loop means?

906


Difference between class#getinstance() and new operator ?

1159


How do you sort arraylist in descending order?

990