1、finally
将会被调用。
只有以下情况 finally
不会被调用:
当你使用
System.exit()
后其他线程干扰了现在运行的线程(通过
interrupt
方法)JVM 崩溃( crash )了
1、finally
将会被调用。
只有以下情况 finally
不会被调用:
当你使用 System.exit()
后
其他线程干扰了现在运行的线程(通过 interrupt
方法)
JVM 崩溃( crash )了
转载于:https://my.oschina.net/u/2477353/blog/617021