System.out.println( "originating the exception in f()"); throw new Exception("thrown from f()");
try { f(); } catch(Exception e) { System.out.println( "Caught in main, e.printStackTrace()"); e.printStackTrace(); throw new NullPointerException("from main"); }