欢迎来到PP题库网 PP题库官网
logo
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

11. public static void test(String str) { 
12. if(str == null | str.lellgth() == 0) { 
13. System.out.println(”String is empty”); 
14. } else { 
15. System.out.println(”String is not empty”); 
16. } 
17. } 
And the invocation: 
31. test(llull); 
What is the result?() 

    A. Au exception is thrown at runtime.
    B. “String is empty” is printed to output.
    C. Compilation fails because of au error in line 12.
    D. “String is not empty” is printed to output.

点击查看答案&解析

相关考题

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

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