try catch finally的递归调用
private static void foo() { try { system.out.println("try"); foo(); } catch (throwable e) { system.out.println("catch"); foo(); } finally { system.out.println("finally"); foo(); } } public static void main(string[] args) { foo(); }
想了半天还是不明白到底输出是什么形式的,希望大神门都能告诉小弟一声!
好吧~~·~