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 need of "creating and throwing an
UserdefinedException" when the "Exception" class is already
available?

Answer Posted / vinayakkatkar

There are some exceptions that are not defined by java api
ex- invalid age exception ,invalid number exception etc.

in user defined exceptions are raised by programmer,
thrown by programmer ,handled by programmer

while predefined exceptions are raised by system,
thrown by system
handled by programmer

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you start a thread?

1098


What is quick sort in java?

1070


Why we use protected in java?

1022


how come we know the object is no more used in the class?

6549


What is the static block?

1116


What do you mean by exception handling in Java?

1364


What is string pool?

1213


What are the methods to rectify ambiguities in the interfaces in JAVA?

1152


What two classes are used to read data only?

1132


What are the different types of sorting in java?

1022


What are the default and parameterized constructors?

1102


What is stringwriter?

1021


Difference between arraylist and hashset in java?

1190


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

981


What is static in java?

1161