欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > SCDCD(310-081)

单项选择题

Given 
1.  public class Foo { 
2.  public static void main (String [] args) } 
3.  try { return;} 
4.  finally { Syste.out.printIn (“Finally”);} 
5. } 
6. }  
What is the result()?

    A. The program runs and prints nothing.
    B. The program runs and prints “Finally”.
    C. The code comiles. But an exception is thrown at runtime.
    D. The code will not compile because the catch block is missing.

点击查看答案

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题