Outline UsingExceptions.java Line 32 Lines 38-40 27 28 // catch exception thrown in try block 29 catch ( Exception exception ) { 30 System.err.println( 31 Exception handled in method throwException ); 32 throw exception; // rethrow for further processing 33 34 // any code here would not be reached 35 } 36 37 // this block executes regardless of what occurs in try/catch 38 finally { 39 System.err.println( Finally executed in throwException ); 40 } 41 42 // any code here would not be reached 43 44 } // end method throwException 45 46 // demonstrate finally when no exception occurs 47 public static void doesNotThrowException() 48 { 49 // try block does not throw an exception 50 try { 51 System.out.println( Method doesNotThrowException ); 52 } The finally block executes, even though Exception thrown Rethrow Exception