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 the difference between throw and throws?

Answer Posted / suresh

mainly throw is used for user defined exceptions and throws
is used for compiler defined excetions.
Ex: if u get a NullPointer exception then we throws this
excetion to the compiler defined excetion class.

if u get malformed or ur own excetion in this time we to
throw this to our own defined excetion

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are facelets templates?

1083


What is a vector in java?

1091


Is minecraft 1.15 out?

1017


What is an empty list in java?

1028


Why map is used in java?

1084


Difference difference paint() and paintcomponent()?

1052


What is the size of an array?

1081


What is singleton class example?

1087


What is defined as false sharing in the context of multithreading?

1085


What is the difference between method and means?

1127


What is the indent key?

1089


Where can I find jdk in my computer?

1032


Why is a string immutable?

1068


What is array command?

1262


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

1862