📄 throwexception1.java
字号:
public class ThrowException1{
int x=4;
public static void main(String arg[]){
ThrowException1 c=new ThrowException1();
try{
if (c.x==4)
throw new Exception();}catch(Exception e){
System.out.println(e.getMessage());
System.out.println(e.toString());
}
System.out.println("ok");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -