题目内容

语句 System.out.println("Hello".equals("hello")?"true":"false"); 的显示结果()

A. hello
B. Hello
C. false
D. true

查看答案
更多问题

以下______表达式是不合法的。

A. String x="Hello"; int y=9; x=x+y;
B. string x=null;inty=(x!=null)&&(x.length()>0)?x.length():0;
C. Stringx="Hello";inty=9;x+=y;
D. Stringx="Hello";inty=9;if(x==y){}

语句“b=2a+2;”是正确的表达式。

A. 对
B. 错

语句"Hello".equals("hello");的结果是true。

A. 对
B. 错

?:是条件运算符。

A. 对
B. 错

答案查题题库