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

throw - It is used to throw an Exception.
throws - This is used to specifies that the method can
throw Exception

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is arraylist zero based?

1111


how can i use a nonsynchronized hashtable?

2623


What are the differences between getting and load method?

1285


What's the default access specifier for variables and methods of a class?

1166


What is difference between an object and a class?

1171


How does sublist works in java?

1026


What is a protected method?

1192


How is java hashmap implemented?

1075


What is comparator in java?

1063


What is the difference between @before and @beforeclass annotation?

1192


What is thread count in java?

1053


What is the purpose of return statement?

1122


What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?

1181


What does string mean in java?

1150


What is the purpose of the finally clause of a try-catch-finally statement in java programming?

1009