black

SCJP程序员认证考试

登录

单项选择题

Given the following code:    
if (x>0) { 
System.out.println("first");
 }    
else if (x>-3) { 
System.out.println("second"); 
}    
else { 
System.out.println("third"); 
} 
Which range of x value would print the string "second"?()    

A. x > 0
B. x > -3
C. x <= -3
D. x <= 0 & x > -3

相关考题

单项选择题 Whichisthereturntypeofthemethodmain()?

多项选择题 1)classPerson{2)publicvoidprintValue(inti,intj){/*…*/}3)publicvoidprintValue(inti){/*...*/}4)}5)publicclassTeacherextendsPerson{6)publicvoidprintValue(){/*...*/}7)publicvoidprintValue(inti){/*...*/}8)publicstaticvoidmain(Stringargs[]){9)Persont=newTeacher();10)t.printValue(10);11)}12)}Whichmethodwillthestatementonline10call?()

多项选择题 Whichofthefollowingstatementsaretrue?()

All Rights Reserved 版权所有©易学考试网(yxkao.com)

备案号:湘ICP备2022003000号-3