题目内容
(请给出正确答案)
[单选题]
有语句String s=”hello world”;以下哪行操作会出现语法错误()
A.s>>>=1;
B.int i=s.length();
C.String ts=s.trim();
D.String t=s+”!”;
答案
A、s>>>=1;
如果结果不匹配,请 联系老师 获取答案
A.s>>>=1;
B.int i=s.length();
C.String ts=s.trim();
D.String t=s+”!”;
A、s>>>=1;
在下面的代码段中填入一个适当的语句,表示从输入流中能读取对象(注:FileInputStream的形象为the Time)。 FileInputStream in=【 】; ObjectInputStream s=ObjectInputStream(in); String today=(String)s.readObject(); Date data=(Date)s.readObject();
A.hello world !
B.’hello world!’
C.hello world
D.list(‘hello world!’)
A.revokeselectonstudentstohello
B.revokedeleteonstudentstohello
C.denyupdateonstudentstohello
D.grantdeleteonstudentstohello
A.char b[10];b=”Hell0 !";
B.char b[10]={'H','e','l','l','o','!'};
C.char b[10];strcpy(b,"Hello !");
D.char b[10]="Hello !";