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

单项选择题


What is the result()?

    A. The program runs and prints “ I = 1 , j = 0”
    B. The program runs and prints “ I = 1 , j = 4”
    C. The program runs and prints “ I = 3 , j = 4”
    D. The program runs and prints “ I = 3 , j = 0”
    E. An error at line 4 cause compilation to fail.
    F. An error at line 7 cause compilation to fail.

点击查看答案

相关考题

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

    A. An exception is thrown.
    B. The code does not compile.
    C. “Hello worlds.” Is printed to the terminal.
    D. The program exits without printing anything.

  • 单项选择题
    Whichwilldeclare themethodthatforcesasubclasstoimplementit?()

    A. public double methoda ():
    B. static void methoda(double d1) {}
    C. public native double methoda ():
    D. abstract public foid methoda ():
    E. protected void methoda (double d1) {}

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

    A. The code compiles and “s=” is printed.
    B. The code compiles and “s=” + s);
    C. The code does not compile because Strings is not initialized.
    D. The code does not compile because Strings cannot be referneed.
    E. The code comiles, but a NullPointer Exception is thrown when toString is called.

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

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

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

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