📄 testexceptionsequence.java.txt
字号:
package ch7.section7_4;
import java.io.IOException;
public class TestExceptionSequence {
public static void main(String[] args) {
TestExceptionSequence test = new TestExceptionSequence();
try {
test.method1();
} catch (IOException e) {
e.printStackTrace();
}
}
public void method1() throws IOException {
method2();
}
public void method2() throws IOException {
method3();
}
public void method3() throws IOException {
throw new IOException("IOException occur in method3");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -