单项选择题
已知String str=new String ("Luck");,则下列关于str的操作中不合法的是( )。
A.String s=str. toUpperCase()
B.int i=Str. length;
C.char s=str. charAt(2);
D.String s="Good" +str;
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
a的值为3时,下列程序段被执行后,c的值是( )。 int c=1; if (a<0) if (a<3) c=2; else c=3; else c=4;
A.1
B.2
C.3
D.4
点击查看答案&解析
单项选择题
关于java. io包中的抽象类,以下叙述中正确的是( )。
A.字符流具有抽象类InputStream和OutputStream
B.字节流具有抽象类Reader和Writer
C.过滤流具有抽象类FiherOutputStream和FilterInputStream
D.压缩流具有抽象类InCompressInputStream和InCompressOutputStream
点击查看答案&解析
相关试题
在执行下面这段Java程序时: public clas...
下面程序的运行结果是( )。 public cl...
下面程序段的输出结果是( )。 public ...
在E-R图中,用来表示实体之间联系的图形是...
在Java中,实现用户界面功能的包是( )。