多做题,通过考试没问题!

java工程师信产部认证考试

睦霖题库>其他计算机考试>java工程师信产部认证考试

下面的哪些程序片段可能导致错误()。 

  • 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”;
正确答案:B,D
答案解析:
进入题库查看解析

微信扫一扫手机做题