Why should we catch super class exceptions? Every exception is represented by the instance of Throwable or its subclasses. An object can carry the information for the exception raising point to the exception handler which catches it. When an exception is thrown, JVM abruptly completes the execution of expressions, statements, methods, invoking constructors etc. The process is continued until the process handler is found which indicates that particular exception by naming the super class of the class of that exception.
|