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 is a data structure java?

982


What is a class reference?

1076


What are parsing rules?

980


How does remove work in java?

948


hr interview how many minutes asking question

2037


Can you achieve runtime polymorphism by data members?

1130


How do you convert int to char in java?

1050


why using interface interface ?

2026


What is empty list in java?

1062


Can we sort a map in java?

1020


What is the final access modifier in java?

1063


What is a arraylist in java?

1043


What are the types of inner classes (non-static nested class) used in java?

1049


What is a modifier?

1497


Is integer a class?

1062