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

单选题:下列程序的运行结果是( )

Luz3年前 (2021-05-10)题库862
下列程序的运行结果是( ) @[B](2)
```
public class Test {
public static void main (String[] args) {
try {
System.out.println("Welcome to Java");
return;
}
finally {
System.out.println("The finally clause is executed");
}
}
}
```

A. Welcome to Java
B. Welcome to Java ,然后是The finally clause is executed
C. The finally clause is executed
D. 以上都不是



A.Welcome to Java
B.Welcome to Java ,然后是The finally clause is executed
C.The finally clause is executed
D.以上都不是


答案:B

发表评论

访客

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