如果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");
动漫人物
温温酱
慕运维8079593
随时随地看视频慕课网APP
相关分类