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 super () does in java?

964


What is import java util arraylist?

1238


What is <> used for in java?

1165


How many types of equations are there?

1065


What are scalar data types?

1124


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

1293


Does java have extension methods?

1043


What is the string function?

998


What do you understand by private, protected and public?

1092


Write a program to print all permutations of string?

1158


Why is it called boolean?

1055


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

2531


How will you get the platform dependent values like line separator, path separator, etc., ?

1076


How to solve the problem of generating the unique hash keys with hash function?

1949


What are the steps involved to create a bean?

1213