package edu.xcdq;
public class Demo01 {
public static void main(String[] args) {
// write your code here
int divisor = 10;
int dividend = 10;
try { // 试着执行代码块内容
System.out.println(divisor /dividend); // ArithmeticException 算数异常
}catch (Exception e ){
e.printStackTrace();
System.out.println("程序捕捉到了对应的异常");
} finally {
System.out.println("不管有没有出错,都会执行");
}
System.out.println(divisor / dividend);
System.out.println("啦啦啦啦,我是后续的内容");
System.out.println("啦啦啦啦,我是后续的内容");
}
}