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 / deewan singh

throw keyword is used to throw Exception from any method or static block in Java while throws keyword, used in method declaration, denoted which Exception can possible be thrown by this method.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which one of the following suits the description of a string better: derived or primitive?

949


Can we override constructors in java?

1119


What is the final method?

1070


What is the purpose of the return statement?

1042


Can a main method be overloaded?

1016


How does singleton class work?

985


What is the arraylist in java?

1045


What are the characteristics of Final,Finally and Finalize keywords.

1172


Write a java program to print fibonacci series?

952


What are meta-annotations?

991


What are different data types?

1021


Define nashorn in java8.

1032


Can we have multiple catch block for a try block?

1003


What is string and its types?

1179


What are streams in java 8?

996