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 methods are used to get and set the text label displayed by a button object?

1013


What are the topics in advance java?

967


Which variables are stored in heap?

1026


What is constructor in java ?

1190


Which is better singleton or static class?

983


how does the run() method in runnable work? : Java thread

920


Who is founder of java?

995


What is the epoch date?

1021


What is the static method?

1072


What modifiers may be used with a top-level class?

1057


How to disable caching on back button of the browser?

1083


Give me example of derived data types.

1145


Can you have two constructors in java?

979


What is visibility mode?

967


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

1179