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 / seshadri pera

UserDefindException are thrown and handled based on the
user requirements to make sure the particular exception
conditions intead of throwing the general exception for all
the exceptions.

We should handle the specific exception first by using
catching it instead of handling generic exceptions of type
Exception.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the four pillars of java?

1211


Why java is made?

983


Is array passed by reference in java?

1032


Is intellij better than eclipse?

1095


what do you mean by java annotations?

1139


Difference between error and exception

6067


Does isempty check for null?

1019


How are destructors defined in java?

1038


Is call by reference possible in java?

967


what is synchronization and why is it important? : Java thread

1094


How many digits can a float hold?

1014


What is difference between length and length() method in java ?

1001


Can java run on google chrome?

1197


Why do we need variables?

991


Can we have try without catch block?

1083