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 meant by structural programming?

1026


What are void pointers?

1317


What is meant by class loader? How many types are there? When will we use them?

975


Can you extend main method in java?

1194


What is the name of the java compiler?

1057


Is null a string or object in java?

973


Explain the significance of class loaders in bootstrap?

952


Can we force garbage collector to run ?

1057


When we should use serialization?

1033


Difference between arraylist and hashset in java?

1148


how to write a server program and sending the mails to the server using smtp protocol please help me

2073


Can memory leak happen java?

1014


Is heap stored in ram?

968


Is java a super set of javascript?

1109


How can you add and remove nodes in jtree?

1047