7.2.4 Catching any exception



A handler catches any type of excption is a handler deal with the basic-type exception type Exception.
catch ( Exception e ) {
    System.out.println("caught an exception");
}
Common methods from Throwable: Case Study : ExceptionMethods.java

Next Page