123jgh

导航

 
public class Test1 {
public static void main(String[] args) {
int a = 2;
int b = 0;

//选择该代码(sout)后 Ctrl + Alt + T 即可选择代码块
try {
System.out.println(a/b);
} catch (Exception e) {
System.exit(0);//手动结束程序
throw new RuntimeException(e);//打印错误的栈信息
} finally {
}
}
}
posted on 2022-10-13 10:39  江江要努力  阅读(22)  评论(0)    收藏  举报