📄 5-10.txt
字号:
class ThrowDemo{
static void demoproc(){
try{
throw new NullPointerException("demo");
}catch(NullPointerException e){
System.out.println("caught inside demoproc");
throw e;}
}
public static void main(String args[]){
try{
demoproc();
}catch(NullPointerException e){
System.out.println("We get exception:"+e);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -