8.2若有定义char ch= 'a',则ch+2+"hello"的值是( )
A. 99hello
B. a2hello
C. ch2hello
D. 992hello
查看答案
8.3 若有定义int x=2,y=3;则语句x==0 | (y++)<1;执行后,表达式和y的值分别是
A. false,4
B. true,4
C. false,3
D. true,3
8.4 若有定义int x=2,y=3;则语句x<0 &&(y++)<1;执行后,表达式和y的值分别是
A. false,4
B. true,4
C. false,3
D. true,3
8.5 若有定义boolean a=true; int x=1,y=2;则语句(a ||(--x)
A. true,1
B. true,0
C. false,1
D. false,0
8.6 若有String s1 ="abc" ; String s2 = "abc" ; 则s1 == s2;和s1.equals(s2) 的结果分别是( )
A. true , true
B. true , false
C. false, true
D. false , false