sb1.append(abc); s1.append(abc);
sb1.append(abc); s1.concat(abc);
sb1.concat(abc); s1.append(abc);
sb1.concat(abc); s1.concat(abc);
sb1.append(abc); s1 = s1.concat(abc);
第1题:
A.123abc123
B. 123abc
C.123
D. abc
第2题:
下面哪一项是合法的xml标记名称?()
第3题:
class One { void foo() {} } class Two extends One { //insert method here } Which three methods, inserted individually at line 14, will correctly complete class Two?()
第4题:
表达式"123abc"-"123"的计算结果是()。
第5题:
下列变量名写法错误的是()。
第6题:
10. class Line { 11. public class Point { public int x,y; } 12. public Point getPoint() { return new Point(); } 13. } 14. class Triangle { 15. public Triangle() { 16. // insert code here 17. } 18. } Which code, inserted at line 16, correctly retrieves a local instance of a Point object?()
第7题:
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"?()
第8题:
Object x = t.findLarger(123, “456”);
int x = t.findLarger(123, new Double(456));
int x = t.findLarger(123, new Integer(456));
int x = (int) t.findLarger(new Double(123), new Double(456));
第9题:
abc
0
123abc123
NaN
第10题:
Point p = new Point();
Line.Point p = new Line.Point();
The Point class cannot be instatiated at line 15.
Line 1 = new Line() ; 1.Point p = new 1.Point();
第11题:
int foo() { /* more code here */ }
void foo() { /* more code here */ }
public void foo() { /* more code here */ }
private void foo() { /* more code here */ }
protected void foo() { /* more code here */ }
第12题:
String s = “123456789”; s = (s-”123”).replace(1,3,”24”) - “89”;
StringBuffer s = new StringBuffer(”123456789”); s.delete(0,3).replace( 1,3, “24”).delete(4,6);
StringBuffer s = new StringBuffer(”123456789”); s.substring(3,6).delete( 1 ,3).insert(1, “24”);
StringBuilder s = new StringBuilder(”123456789”); s.substring(3,6).delete( 1 ,2).insert( 1, “24”);
StringBuilder s = new StringBuilder(”123456789”); s.delete(0,3).delete( 1 ,3).delete(2,5).insert( 1, “24”);
第13题:
以下代码,哪个结果是正确的?() var str='123abc'; str += str.replace('abc' , ''); alert(str);
第14题:
public class TestString3 { public static void main(String[] args) { // insert code here System.out.println(s); } } Which two code fragments, inserted independently at line 3, generate the output 4247?()
第15题:
10. class Line { 11. public static class Point { } 12. } 13. 14. class Triangle { 15. // insert code here 16. } Which code, inserted at line 15, creates an instance of the Point class defined in Line?()
第16题:
下列表达式中值为逻辑真的是()。
第17题:
1. public class Test { 2. public
第18题:
Given: 10. class One { 11. void foo() { } 12. } 13. class Two extends One { 14. //insert method here 15. } Which three methods, inserted individually at line 14, will correctly complete class Two?()
第19题:
public void foo() { /* more code here */ }
private void foo() { /* more code here */ }
protected void foo() { /* more code here */ }
int foo() { /* more code here */ }
void foo() { /* more code here */ }
第20题:
int foo() { /* more code here */ }
void foo() { /* more code here */ }
public void foo() { /* more code here */ }
private void foo() { /* more code here */ }
protected void foo() { /* more code here */ }
第21题:
123abc123
123abc
123
abc
第22题:
EMPTY(.NULL.)
LIKE(ABC,AB?)
AT(A,123ABC)
EMPTY(SPACE(2))
第23题:
sb1.append(abc); s1.append(abc);
sb1.append(abc); s1.concat(abc);
sb1.concat(abc); s1.append(abc);
sb1.concat(abc); s1.concat(abc);
sb1.append(abc); s1 = s1.concat(abc);
第24题:
〈123abc〉
〈123书名〉
〈xml123〉
〈Hello-OK〉