执行下列代码的输出结果是?
public class Demo{
public static void main(String args[]){
int num = 10;
System.out.println(test(num));
}
public static int test(int b){
try
{
b += 10;
return b;
}
catch(RuntimeException e)
{
}
catch(Exception e2)
{
}
finally
{
b += 10;
return b;
}
}
}
发布于 2020-12-25 22:07:36
登录后免费查看答案
关注者
0
被浏览
261