- 博客(2)
- 收藏
- 关注
原创 finally块中的代码一定执行吗
<br /> <br /> 在Sun Tutorial中有这样一句话:The finally block always executes when the try block exits. This ensures that the finally block is executed even if an unexpected exception occurs. 看来finally块中的语句应该是总会执行的。<br /> 先来写一个最常见的写法:<br /> view plaincopy to cl
2011-04-08 22:38:00 284
原创 finally块中的代码一定执行吗
<br /> <br /> 在Sun Tutorial中有这样一句话:The finally block always executes when the try block exits. This ensures that the finally block is executed even if an unexpected exception occurs. 看来finally块中的语句应该是总会执行的。<br /> 先来写一个最常见的写法:<br /> view plaincopy to cl
2011-04-08 22:37:00 73
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人