下列程序运行的结果是( )for(int i=0;i<5;i+=2) {System.out.print(i);}
A. 012345
B. 01234
C. 024
D. 246
查看答案
若定义int x=2,y=3; float z=3.5f;则不正确的赋值为( )
A. z=x/y;
B. z=x;
C. x=z;
D. z=x+1.5f;
若有定义char ch= 'a',则ch+2+"hello"的值是( )
A. 99hello
B. a2hello
C. ch2hello
D. 992hello
若有定义int x=2,y=3;则语句x==0 | (y++)<1;执行后,表达式和y的值分别是
A. false,4
B. true,4
C. false,3
D. true,3
若有String s1 ="abc" ; String s2 = "abc" ; 则s1 == s2;和s1.equals(s2) 的结果分别是( )
A. true , true
B. true , false
C. false, true
D. false , false