Given: 22.StringBuilder sb1 = new StringBuilder("123"); 23.String s1 = "123"; 24.// insert code here 25.System.out.println(sb1 + " " + s1); Which code fragment, inserted at line 24, outputs "123abc 123abc"?()
A、sb1.append(abc); s1.append(abc);
B、sb1.append(abc); s1.concat(abc);
C、sb1.concat(abc); s1.append(abc);
D、sb1.concat(abc); s1.concat(abc);
E、sb1.append(abc); s1 = s1.concat(abc);
相关问题推荐
-
Given classes defined in two different files: What is required at line 5 in class SomeApp to use the process method of BitUtils?()
A、 process(bytes);
B、 BitUtils.process(bytes);
C、 app.BitUtils.process(bytes);
D、 util.BitUtils.process(bytes);
E、 import util.BitUtils.*; process(bytes);
F、 SomeApp cannot use the process method in BitUtils.
-
UML类图中的关联相当于ER模型中的()
A、实体
B、实体集
C、联系
D、属性
-
For the interface ge-1/2/3.4, what does the "ge" represent?()
A、Gigabit Ethernet
B、SONET/SDH
C、Aggregated Ethernet
D、GRE
-
下列关于派生类和基类的描述中,正确的是( )。
A、派生类成员函数只能访问基类的公有成员
B、派生类成员函数只能访问基类的公有和保护成员
C、派生类成员函数可以访问基类的所有成员
D、派生类对基类的默认继承方式是公有继承
-
无线室内覆盖系统设计应在充分调查和预测()和运营维护要求的基础上,做好系统设计,并适应用户及网络发展的需要。
A、运营商的需求
B、网络升级需求
C、用户需求
D、网络安全需求