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 / sathiya moorthy v

throw --> manually throw exception.
Ex: throw ThrowableInstance;
throws -->Any exception that is thrown out of a method must
be specified as such by a throws clause
Ex: <access specifier> <return type> <methodName> throws
Exception{
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is void a keyword in java?

1020


What is lazy programming?

1043


Explain the JDB in depth & command line.

1016


What is meant by method overriding?

1113


Name few java 8 annotations ?

1030


Why is java so important?

1129


can I implement my own start() method? : Java thread

994


Difference between linkedlist and arraylist.

1077


What is ellipsis in java?

1087


What is the role of garbage collector in java?

970


What is the difference between public, private, protected, and friend access?

1047


What is the collections api?

1057


Can arraylist hold different types java?

987


Explain the scope or life time of class variables or static variables?

988


Is object a data type?

966