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 / chandra sekhar

In Throws, what ever the exception you are declaring are
handle by JVM. If it is a user defined exception in throws
block, JVM doesn't know when to throw that exception. For
this purpose we use Throw for a certain conditions/logic to
throw these user defined exceptions.

I think the above makes sense.

Is This Answer Correct ?    45 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of default method in interface in java? Explain

999


What is string in java is it a data type?

1016


What is the Scope of Static Variable?

1229


What is the size of int in 64-bit jvm?

1093


What do you mean by boolean?

1063


What is difference between string and new string?

1035


I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?

980


Explain illegalmonitorstateexception and when it will be thrown?

1099


What are the two types of streams offered by java 8?

925


What is difference between path and classpath in java?

1020


Explain differences between checked and unchecked exceptions in java?

1061


What is the final keyword?

985


What is files manifesting?

2201


What is the difference between size and length in java?

974


What are accessor methods in java?

1006