📄 ex070102.java
字号:
class Test{
static void m1(){
try{
throw new ArithmeticException();
}catch(ArithmeticException e){
try{
throw new ArithmeticException();
}catch(ArithmeticException e1){
throw new ArrayIndexOutOfBoundsException("demo");
}catch(ArrayIndexOutOfBoundsException e1){
System.out.println("Caught "+e+" in AAA");
}
}catch(ArrayIndexOutOfBoundsException e){
System.out.println("caught "+e+" in BBB");
}
}
public static void main(String args[]){
try{
m1();
}catch(RuntimeException e){
System.out.println("caught "+e+" in CCC");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -