try_catch_finally执行顺序

public static int exception() throws Exception { int i=2; try{ i++; System.out.println(i); return i; }catch (Exception e){ i++; return i; }finally { i++; System.out.println(i); return i; } } 执行顺序: try
相关文章
相关标签/搜索