单项选择题
下列的哪个程序段可能导致错误
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";
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列程序的输出结果是( )。interface Inter{public final static int A=100;}class My implements Inter{public static void main (String args[ ]){System.out.println(A) ;}
A.100
B.0
C. A
D. 程序有错误
点击查看答案&解析
单项选择题
下列程序的执行结果是( )。public class Testhh {public static void main(String args [] ) {Strings1=new String( I am boy );Strings2=new String( I am boy );System.out.println(s1.equals(s2));}}
A. true
B. false
C. I am boy
D. 都不正确
点击查看答案&解析
相关试题
下列的程序的功能是求2~100之间的素数...
阅读下面程序public class Increment {...
下列程序的输出结果是( )。class Demo...
下列的哪个选项可以正确用以表示八进制值8
下列哪个选项不能提高程序的性能