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

When is finally block not called?

1093


What technique is carried out to find out if a particular string is empty?

1016


Is there any way to skip finally block of exception even if some exception occurs in the exception block?

1072


What is the use of string and stringbuffer?

985


What is keyset in java?

1081


How is Object Oriented Programming different from Procedure Oriented Programming?

1049


What is e java?

1104


os is developed in c no java is more secured then c na why dont the os developed is developed using java

4229


What is the map interface in java programming?

1017


How do you create a method in java?

1002


Why declare Main() method as a static in java ?

1079


Can private class be inherited in java?

1031


make a method which any number and any type of argument and print sum of that arguments.....

1820


Is arraylist ordered in java?

1118


What is math floor in java?

950