[單項(xiàng)選擇題] 有如下程序段if(x>0) System.out.println("first");else if (x > -4) System.
2021-07-20
[單項(xiàng)選擇題] 有如下程序段if(x>0) System.out.println("first");else if (x > -4) System.out.println("second");else System.out.println("third");x的取值在什么范圍內(nèi)時(shí),將打印出字符串“second"?()
A.x > 0
B.x > -4
C.x
D.x -4
正確答案:Dsecond”,x
參考解析:解析:此題考查if語(yǔ)句的用法,x>0時(shí)打印“first”,x,-3&&x
詞條內(nèi)容僅供參考,如果您需要解決具體問(wèn)題
(尤其在法律、醫(yī)學(xué)等領(lǐng)域),建議您咨詢(xún)相關(guān)領(lǐng)域?qū)I(yè)人士。