当前位置: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.

豆类的胎座为()。 边缘胎座。 侧膜胎座。 中轴胎座。 特立中央胎座。 一般百货或易消耗品,基本上就是现买现消费,所以它们的生命周期为0。 目标的特点包括() 指明方向。 有效激励。 促进管理。 是领导的基础。 公务员按照职位可以分为()类。 二。 三。 四。 五。 框架构造

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?() 

参考答案:

  参考解析

本题暂无解析

在线 客服