单选题 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

答案解析

暂无解析

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考