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

throws is used to throw an exception from the method
without handling that exception where as 'throw' is used
to throw the exception to catch block and handle it.

Is This Answer Correct ?    123 Yes 79 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which class represents the socket that both the client and server use to communicate with each other?

1085


Why are generics used?

1029


What is numel matlab?

1403


What is size of int in java?

1100


Can java hashmap have duplicate keys?

1077


Is logger a singleton?

1014


Why is static used?

1073


What are namespaces in java?

1083


Write a program to print count of empty strings in java 8?

1062


What is the static method?

1124


What is difference between local variable and global variable?

1078


Explain the importance of finally block in java?

1021


Why java is not 100% object-oriented?

1602


Are variables stored in ram?

1062


What are the problems faced by java programmers who don't use layout managers?

1038