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

throw: It is used to explicitly or manually throw an
exception.it can throw user defined exceptions.

throws:It tells that exception to b handled by calling
function. It tells caller that what exception that method
could throw.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different access specifiers in java?

951


What is command line argument

1153


Is age discrete or continuous?

1062


What are the main differences between the java platform and other platforms?

996


What is an abstract class and what is it’s purpose?

910


Which is better list or arraylist in java?

811


What are generic methods?

915


What is anti pattern in java?

905


What is the difference between static and global variables and also define what are volatile variables?

988


What is mysql driver class name?

1081


What are the disadvantages of using inner classes?

1063


What do you mean by platform independence? What is an interface?

983


what is inner class in java?

1077


Why is boolean important?

1006


how many types of Inheritance?

1123