当前位置:SCJP程序员认证考试题库

问题:

[单选]

What will be written to the standard output when the following program is run?()  
public class Q03e4 {  
public static void main(String args[]) {  
String space = " ";  
String composite = space + "hello" + space + space;  
composite.concat("world");  
String trimmed = composite.trim();  
System.out.println(trimmed.length()); 
 }  
}  

A . 5
B . 6
C . 7
D . 12
E . 13

不属于百度算法的是()。 蜂鸟算法。 熊猫算法。 企鹅算法。 以上都不是。 ()是我国宪法日。 11月4日。 11月5日。 12月4日。 12月5日。 为了鼓励学前儿童的探索活动,家庭成员可以采取以下方式鼓励学前儿童的探索活动:第一是关心学前儿童的探索活动;第二是为探索活动提供必要的物质条件;第三是父母参与学前儿童的探索活动。 动画与真人合成的动画片 如果中央银行希望降低利息率,那么,它就可以在公开市场上出售政府债券。

What will be written to the standard output when the following program is run?()  
public class Q03e4 {  
public static void main(String args[]) {  
String space = " ";  
String composite = space + "hello" + space + space;  
composite.concat("world");  
String trimmed = composite.trim();  
System.out.println(trimmed.length()); 
 }  
}  

参考答案:

  参考解析

本题暂无解析

在线 客服