class Test { public static void main(String argv[]) throws Exception { try { System.out.print("Hello"); throw new Exception("E"); } catch (Exception e) { throw new Exception("F"); } finally { System.out.println(" World"); } } }The answer is:
java Test Hello World Exception in thread "main" java.lang.Exception: F at Test.main(Test.java:12)