[单项选择题] 有如下程序段if(x>0) System.out.println("first");else if (x > -4) System.
2021-07-20
[单项选择题] 有如下程序段if(x>0) System.out.println("first");else if (x > -4) System.out.println("second");else System.out.println("third");x的取值在什么范围内时,将打印出字符串“second"?()
A.x > 0
B.x > -4
C.x
D.x -4
正确答案:Dsecond”,x
参考解析:解析:此题考查if语句的用法,x>0时打印“first”,x,-3&&x
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。
