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

单项选择题


What is the result?()

    A. The code compiles and “s=” is printed.
    B. The code compiles and “s=null” is printed.
    C. The code does not compile because Strings is not initialized.
    D. The code does not compile because because Strings cannot be referneed.
    E. The code comiles.butt a NullPointerException is thrown when toString is called.

点击查看答案

相关考题

  • 多项选择题
    Whichtwoarevaliddeclarationsofchar?()

    A. Char ch = “a”;
    B. char ch = “”;
    C. char ch = “café”;
    D. char ch = “ucafe”;
    E. char ch = “ucafe’;
    F. char ch = “u10100’;
    G. char ch = (char) true;

  • 多项选择题
    Which three logical expressions evaluate to true?()

    A. (a = = c)
    B. (d = = c)
    C. (b = = d)
    D. (a = = b)
    E. (b = = c)
    F. (d == 10.0)

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

    A. The program prints “lava”.
    B. The program prints “java”.
    C. An error at line 7 causes compilation to fail.
    D. Complication succeeds but the program throws an exception.

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

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

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

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