-->
当前位置:首页 > 题库 > 正文内容

多选题:在Java语言中,给出下面的代码片段:

Luz4年前 (2022-01-17)题库754
在Java语言中,给出下面的代码片段:
{java}
public void Test() {
  try {
      method();
      System.out.println(""Hello World"");
  } catch (ArrayIndexOutOfBoundsException e) {
    System.out.println("Exception0");
  } catch(Exception e) {
    System.out.println("Exception1");
  } finally{
    System.out.println("Thank you!");
  }
}

如果方法method()正常运行并返回,会显示下面的哪些信息?



A.Hello World
B.Exception0
C.Exception1
D.Thank you!


答案:A D

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。