📄 exceptionstacktest.java
字号:
/**
*Exception Call Stack Sample
*/
package sample;
public class ExceptionStackTest {
public void a() throws Exception{
b();
}
public void b() throws Exception{
c();
}
public void c() throws Exception{
throw new Exception();
}
public static void main(String[] args) {
ExceptionStackTest est = new ExceptionStackTest();
try{
est.a();
}catch(Exception e){
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -