多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

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
正确答案:D
答案解析:
进入题库查看解析

微信扫一扫手机做题