单选题

执行下列代码的输出是?

发布于 2022-03-03 13:51:06

执行下列代码的输出结果是( )
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
   }
  }
}

登录后免费查看答案
关注者
0
被浏览
10
知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看