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

What is the difference between size and length in java?

1025


Implement two stacks using a single array.

1109


What is a qms manual?

1043


What is broken and continue statement?

1063


When can an object reference be cast to an interface reference in java programming?

1068


Can I declare a class as private?

1127


Why hashcode is used in java?

1029


Why singleton class is used in java?

1197


What is the difference between Grid and Gridbaglayout?

1341


What is difference between pointer and reference?

1122


What are the classes of java?

1022


Explain the selection sort algorithm?

1118


Difference between this() and super() ?

1187


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

1137


What is the difference between the boolean & operator and the && operator in java programming?

1097