Follow The Author

Saturday, 14 June 2014

Exception handling and Java exception classes’ inheritance hierarchy

No comments :

·        Hierarchical inheritance: It is a type of inheritance where one or more derived classes is derived from common (or one) base class. ex:

·        Exception Handling: Exception is an error event that can happen during the execution of a program and disrupts its normal flow. Java exception handling enables your Java applications to handle errors sensibly. Exception handling is a very important yet often neglected aspect of writing robust Java applications or components. When an error occurs in a Java program it usually results in an exception being thrown. How you throw, catch and handle these exception matters. There are several different ways to do so. Not all are equally efficient and fail safe.






No comments :