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

What is the destroy method?

1040


If a class is declared without any access modifiers, where can the class be accessed?

1066


How can we run a java program without making any object?

1044


What java ide should I use?

992


What is meant by structural programming?

1021


what type of questions asked for barclays technologies pune please send urgent

5665


What is use of static method?

1054


Which package is imported by default?

1082


What are runtime exceptions?

1160


What are the parts of methodology?

976


What is bigger kb or mb?

1048


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

1177


What is pass by value?

945


Tell me the Importent classes in net package?

1999


I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?

983