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 the difference between throw and throws?

Answer Posted / balaji

throw:it is used to raise exception explicitly
that means it is use when a user defined exception is raised

throws:if a method is capable of throwing an exception but
it does not handle the exception that must be specified by
using "throws" class

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java objectoutputstream?

993


What are filterstreams?

1084


What is the hashcode () and equals () used for?

1039


What is a char in java?

1050


Does java support multiple inheritance or not?

1114


Is class forname reflection?

991


What is compareto?

1042


What are the differences between Java 1.0 and Java 2.0?

2283


What is the symbol for line break?

1099


Where is core java used?

1017


What is getclass () getname () in java?

1154


What are static blocks and static initalizers in java ?

1083


What are "methods" and "fields"?

1028


When super keyword is used?

1016


Who is the owner of java?

1005