试题详情
- 单项选择题 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.
- A
关注下方微信公众号,在线模考后查看
热门试题
- class Beta{&en
- 下列关于标识符的叙述正确的是哪项?()&
- Which two̳
- Given the&ensp
- foo and
- 如果想把一个对象写入一个流,那么这个类就
- import java.ut
- 下列关于JDK、JRE和JVM的描述。哪
- Which two̳
- 写一个函数,求一个字符串的长度,在mai
- 1. class
- 事件处理类的真正实现代码一般在哪个类中?
- Which statemen
- Given classes defin
- public class&e
- public class&e
- A developer&en
- public class&e
- A custom
- Which two choi