A-A+

下列的()程序段可能导致错误。A.String s=hello: Sting t=go

2022-08-06 06:21:46 问答库 阅读 176 次

问题详情

下列的()程序段可能导致错误。
A.String s="hello": Sting t="good"; String k=s+t;
B.Sting s="hello"; String t; t=s [3] + "one";
C.Sting s="hello"; String standard=s.toUpperCase();
D.String s="hello": Stringt s +"good";请帮忙给出正确答案和分析,谢谢!

参考答案

正确答案:B

考点:错误,程序