In java there are two types of exceptions.
* Checked Exceptions
* Unchecked Exceptions.
Unchecked are further classifieds into
>> Error
>> Runtime Exceptions
* Checked Exceptions
These are exceptional conditions that a well-written application should anticipate and recover from.
For example java.io.FileNotFoundException.
All exceptions are checked exceptions, except for those indicated by Error,
RuntimeException, and their subclasses.
* Error
These are exceptional conditions that are external to the application, and that the application usually cannot anticipate or recover from.
For example java.io.IOError
* Runtime Exceptions
These are exceptional conditions that are internal to the application, and that the application usually cannot anticipate or recover from.These usually indicate programming bugs, such as logic errors or improper use of an API.
For example NullPointerException,Division by Zero , etc.
No comments:
Post a Comment