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

Do you know why doesn't the java library use a randomized version of quicksort?

995


What is private static class in java?

1064


What is java english?

1088


why java does not support unsigned keyword?

5341


Can singleton class be inherited in java?

1061


Can you add null to a list java?

1107


How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?

1548


Do we have pointers in java?

1072


What is a memory leak in java?

1134


What is the purpose of main function in java?

1078


How do you check if a string is lexicographically in java?

999


Is main a function?

1129


What is the use of put method?

1004


What is final modifier?

1137


What are benefits of java?

1098