Java示例最后阻止 Java示例最后阻止捕获异常 Java示例异常层次结构 Java示例最后阻止 public class HelloWorld { public static void main(String []args) { try { int data = 25/5; System.out.println(data); } catch(NullPointerException e) { System.out.println(e); } finally { System.out.println("finally block is always executed"); } System.out.println("rest of the code..."); } } Java示例最后阻止捕获异常 Java示例异常层次结构