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 / ravivarman

Throw keyword can be used by a program to throw exceptions
explicitly.the execution of the current block stops
immediately after the throw statement.
A method should declare that it can cause an exception and
expects its caller handle or re-throw the exception.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hashtable and explain features of hashtable?

946


What are java packages? What's the significance of packages?

1224


Why we override equals() method?

982


Why are lists ordered in java?

968


What is a generic type?

956


if u open login & logout ,how can udisplay the timelogin & logout members ?

2224


Is there any tag in htm to upload and download files?

997


What are the benefits of operations?

895


How many classes can any class inherit java?

928


Why do you canvas?

986


What is toarray method in java?

1030


What does flagged out mean?

1007


Can we increase array size dynamically in java?

899


Is arraylist a class in java?

997


What is compiler and what its output.

1079