test46.java~

来自「SCJP认证考试资料」· JAVA~ 代码 · 共 18 行

JAVA~
18
字号
class Test46 {
    void f() {
	throw new RuntimeException();
    }
    public static void main(String[] args) throws Exception {
	Test t = new Test();
	try {
	    t.f();
	} catch (Exception e) {
	    System.out.println("catch");
	}
	finally {
	    System.out.println("finally");
	    throw e;
	}
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?