多选题下面的哪些程序片段可能导致错误()。AString s = “Gone with the wind”;  String t = “ good”;  String k = s + t;BString s = “Gone with the wind”;  String t;  t = s[3] + “one”;CString s = “Gone with the wind”;  String standard = s.toUpperCase();DString s = “home directory”;

题目
多选题
下面的哪些程序片段可能导致错误()。
A

String s = “Gone with the wind”;  String t = “ good”;  String k = s + t;

B

String s = “Gone with the wind”;  String t;  t = s[3] + “one”;

C

String s = “Gone with the wind”;  String standard = s.toUpperCase();

D

String s = “home directory”;  String t = s – “directory”;


相似考题