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 / ravikumar

Throws - what ever the exception you are declaring are
taken care 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

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is object cloning in Java?

1151


What is 32 bit float?

1060


What is sorting algorithm in java?

1149


What is the use of parseint in java?

1087


Is sizeof a keyword in java programming?

1125


Objects or references which of them gets garbage collected?

1015


Why is stringbuffer called mutable?

1047


What's the purpose of using break in each case of switch statement?

1041


What is difference between final and finally in java?

1147


Which is fastest collection in java?

1148


What are Normalization Rules? Define Normalization?

1114


What is the best definition for data?

1026


How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?

1102


Which class should you use to obtain design information about an object in java programming?

1135


Is nullpointerexception checked or unchecked?

1074