小编Man*_*ese的帖子

真的需要块吗?

如果将要执行catch块之后的语句,那么java中finally块的真正用途是什么?例

 try {
 //Code
}
catch (Exception e)
{
//Code
}
finally {
 System.out.println("anyway it will be        executed");
 }

System.out.println("anyway it will be executed");
Run Code Online (Sandbox Code Playgroud)

java finally try-catch

0
推荐指数
1
解决办法
96
查看次数

标签 统计

finally ×1

java ×1

try-catch ×1