欢迎来到求知题库网 求知题库官网
logo
全部科目 > Java认证考试 > SCDCD(310-081)

单项选择题


What is the result?()

    A. Compilation succeeds.
    B. An error at line 2 cause compilation to fail.
    C. An error at line 9 cause compilation to fail.
    D. An error at line 10 cause compilation to fail.
    E. An error at line 11 cause compilation to fail.

点击查看答案

相关考题

  • 单项选择题
    What is the result?()

    A. The program runs and prints “Hello”
    B. An error causes compilation to fail.
    C. The program runs and prints “Hello world!”.
    D. The program runs but aborts with an exception.

  • 单项选择题
    What is the result?()

    A. foo has the value””
    B. foo has the value null.
    C. An exception is thrown.
    D. The code will not compile.

  • 单项选择题
    Whichthe statementistrue?()

    A. The Error class is a Runtime Exception.
    B. No exceptions are subclasses of Error.
    C. Any statement that may throw an Error must be enclosed in a try block.
    D. any statement that may throw an Exception must be enclosed in a try block.
    E. Any statement that may throw an Runtime Exception must be enclosed in a try block.

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

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

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

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