单选题
Java
题号 #153839
下列的哪个程序段可能导致错误?
A.String s = " hello";
String t = " good ";
String k = s + t;
B.String s = " hello";
String t;
t = s[3] + "one";
C.String s = " hello";
String standard = s.toUpperCase();
D.String s = "hello";
String t = s + "good";
参考答案
B
答案解析
暂无解析
你可能感兴趣的试题
A.i = w;
B.i = b
C.i = a;
D.i = b;
A.x > 0
B.x > -4
C.x <= -4
D.x <= 0 & & x > -4