为什么捕获异常之后的输出语句没有被成功执行呢?

 public class XTException extends Exception {

    public XTException(String msg){
        super(msg);
    }
}
 public class Demo {
    public int div(int a,int b) throws XTException{
        int c = a/b;        
        return c;
    }
}
 public class Test {
    public static void main(String[] args) {
        Demo d = new Demo();
        try {
            System.out.println(d.div(10, 0));
        } catch (XTException e) {
            e.printStackTrace();
        }
        System.out.println("为什么不可以输出这句话?");

    }
}

public class Test {
public static void main(String[] args) {
Demo d = new Demo();
try {
System.out.println(d.div(10, 0));
} catch (XTException e) {
e.printStackTrace();
System.out.println("为什么不可以输出这句话?");
}
}
}
没有放在异常捕捉的范围内,当然不会。就和没有放在for的大括号里不会循环一个道理

不是吧 如果没有try catch 程序从上到下执行 当执行到最后一步的时候不是应该输出这句话吗?