finally块将不会被执行

1、finally块中发生了异常;

2、程序所在的线程死亡;

3、在前面的代码中用了System.exit();

4、关闭CPU

原文地址:https://www.cnblogs.com/hnwcan/p/4523234.html