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

throws is used for throwing an exception from a method to
jvm, the jvm should handle it.where us throw is used when
user needs to raise his own exception.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a checked and an unchecked exception?

1044


What is passed by reference and pass by value ?

1088


What is java thread dump, how can we get java thread dump of a program?

1074


What are accessor methods in java?

1058


What are methods and how are they defined?

1275


What are selection structures?

1049


Explain about exception propagation?

1103


What is the largest data type in java?

1023


What is return in java?

1029


What is the use of generics? When was it added to the Java development Kit?

1066


How can I become a good programmer?

1030


What are advantages and disadvantages of OOPs?

1195


What is the difference between interface & abstract class?

1088


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

1548


Can there be an abstract method without an abstract class?

1015