注意:此页面搜索的是所有试题
题目内容
(国际开放大学Java语言程序设计)
下列代码段执行后,输出结果正确的是( )。
public class Conditional{
public static void main(String args[ ]){
int m=3;
System.out.println(“value is “+ ((m<5) ? 99.9:9));
}
}
A.value is 99.9 B.value is 99.0
C.value is 9 D.value is 9.0
public class Conditional{
public static void main(String args[ ]){
int m=3;
System.out.println(“value is “+ ((m<5) ? 99.9:9));
}
}
A.value is 99.9 B.value is 99.0
C.value is 9 D.value is 9.0
参考答案