s=s+1;
char c=s[3];
int i=s.length;
String t=s+new Object();
第1题:
A.s>>>=3;
B.int i=s.length();
C.s[3]=”x”;
D.String short_s=s.trim();
E.String t=”root”+s;
第2题:
已知有定义:Strings="story",下面()表达式是合法的。
A.s+="books";
B.charC=s[1];
C.intlen=s.length;
D.Strings=s.toLowerCase();
第3题:
下面这段代码会产生( )个String对象。
Strings1="hello";
Strings2=s1.substring(2,3);
Strings3=s1.toString();
Strings4=newStringBuffer(s1).toString();
A、1
B、2
C、3
D、4
第4题:
已知函数x(t)=t,则函数x(t)的拉氏变换为()
第5题:
设Strings="story";下列选项中的语句书写正确的是()。
第6题:
已知Strings=“Java”,则下面哪些代码是正确的()
第7题:
String s = strings.get(0);
Iterator i1 = strings.iterator();
String[] array1 = strings.toArray();
Iterator
String[] array2 = strings.toArray(new String[1]);
Iterator
第8题:
S+1
S
1/S2
1/(S+1)
第9题:
s+=books
charc=s[1]
intlen=s.length
Stringt=s.toLowerCase()
第10题:
int m=s.indexOf(‘r’);
char c=s.charAt(0);
int n=s.length();
String str=s.append(‘2’);
第11题:
s=s+1;
char c=s[3];
int i=s.length;
String t=s+new Object();
第12题:
String s = c.readLine();
char[] c = c.readLine();
String s = c.readConsole();
char[] c = c.readConsole();
String s = c.readLine(%s, name );
第13题:
已知程序段: S=0 FOR I = 1 T() 10 STEP 2 S=S+1 I=I.2 NEXT I当循环结束后,变量I和s的值分别为( )。
A.10和2
B.11和5
C.16和4
D.22和3
第14题:
给定如下所示的JAVA代码,则运行时,会产生( )类型的异常
Strings=null;
s.concat("abc");
A.ArithmeticException
B.NullPointerException
C.IOException
D.ClassNotFoundException
第15题:
设有定义:Strings=“World”;,下列语句错误的是( )。
A、intm=s.indexOf(‘r’);
B、charc=s.charAt(0);
C、intn=s.length();
D、Stringstr=s.append(‘2’);
第16题:
执行代码Strings=newString("Hello")后,正确的结论是()
第17题:
有语句String s=”hello world”; ,以下操作哪个是不合法的()
第18题:
1. import java.util.*; 2. public class Test { 3. public static void main(String[] args) { 4. List
第19题:
int i=s.length();
s>>>=3;
String ts=s.trim();
String t=s+”!”
第20题:
String s = “Gone with the wind”; String t = “ good”; String k = s + t;
String s = “Gone with the wind”; String t; t = s[3] + “one”;
String s = “Gone with the wind”; String standard = s.toUpperCase();
String s = “home directory”; String t = s – “directory”;
第21题:
String s = Gone with the wind;String t = good ;String k = s + t;
String s = Gone with the wind;String t; t = s[3] + one;
String s = Gone with the wind;String standard = s.toUpperCase();
String s = home directory;String t = s - directory;
第22题:
inti=s.length()
s>>>=3
Stringts=s.trim()
Stringt=s+”!”
第23题:
String s = john + was + here;
String s = john + 3;
int a = 3 + 5;
int a = 5 + 5.5;
第24题:
s+=books;
char c = s[1];
int len = s.length;
s = s-books;