注意:此页面搜索的是所有试题
题目内容
(国际开放大学Java语言程序设计)
下列代码段的运行结果为( )。
public class Test {
public static void main (String[] args){
int n = 23;
System.out.println("value is " + ((n<25)?10:100));
}
}
A. value is 10 B. value is 23
C. 编译错误 D. value is 100
public class Test {
public static void main (String[] args){
int n = 23;
System.out.println("value is " + ((n<25)?10:100));
}
}
A. value is 10 B. value is 23
C. 编译错误 D. value is 100
参考答案