public class foo { public static void main (stringargs) try {return;} finally {system.out.printIn(“Finally”);} } What is the result?()
- A、 The program runs and prints nothing.
- B、 The program runs and prints “Finally”
- C、 The code compiles, but an exception is thrown at runtime.
- D、 The code will not compile because the catch block is missing.
正确答案:B
答案解析:有
微信扫一扫手机做题