Summary
Java’s Exception handling mechanism provides a means to deal efficiently with Errors and Exceptions.
Exceptions can be caught and thrown.
Runtime Exceptions provide a safety layer.
Errors usually cause program’s termination.
Packages are a means of clustering related classes.
Access Modifiers for Class, Fields, and methods :
- private, public, protected, final, static.
Usage Contract - Extension Contract.