單項(xiàng)選擇題

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

微信掃碼免費(fèi)搜題