多项选择题
下面的哪些程序片断可能导致错误()
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"
点击查看答案
相关考题
-
多项选择题
看下面关于switch的语句 switch(exp1 ) { } 表达式exp1可以是()类型
A.int
B.char
C.byte
D.String -
多项选择题
下面哪些接口直接继承于Collection接口()
A.List
B.Map
C.Set
D.HashTable -
单项选择题
在Java多线程中sleep()和wait()方法,下列说法不正确的是()
A.sleep()方法是使线程停止一段时间的方法
B.在sleep 时间间隔期满后,线程立即恢复执行
C.wait()方法用于线程交互
D.使用wait() 方法后,线程需要被通知唤醒
