试题详情
单项选择题 public class foo {  public static void main (string[]args)  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
  • 关注下方微信公众号,在线模考后查看

热门试题