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

Write a program in java to find the maximum and minimum value node from a circular linked list.

1025


Is java map thread safe?

900


Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?

996


Which java ide is used the most?

954


What is pojo class in java?

1013


How do you create immutable object in java?

996


Why java doesn’t support multiple inheritances?

975


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

1077


What are the basics of core java?

973


What is flush () in java?

967


What are the data types supported by java?

982


What is the exact difference in between Unicast and Multicast object? Where will it be used?

1013


What is the internal implementation of set in java?

885


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

1025


What is nan inf?

992