package expection;
public class Test2 {
public static void main(String[] args) {
int a = 1;
int b = 0;
//crl + alt + T 快捷键
try {
System.out.println(a / b);
}catch (Exception e){
e.printStackTrace();//打印错误的栈信息
} finally {
}
}
}
网友评论