单选题:假设有如下程序:
假设有如下程序:
```
public class Demo {
public static void main(String args[]) {
boolean flag = 10%2 == 1 && 10 / 3 == 0 && 1 / 0 == 0 ;
System.out.println(flag ? "mldn" : "yootk") ;
}
}
```
最终执行结果是什么?@[B](2)
A. mldn
B. yootk
C. true
D. 程序出错
A.mldn
B.yootk
C.true
D.程序出错
答案:B
```
public class Demo {
public static void main(String args[]) {
boolean flag = 10%2 == 1 && 10 / 3 == 0 && 1 / 0 == 0 ;
System.out.println(flag ? "mldn" : "yootk") ;
}
}
```
最终执行结果是什么?@[B](2)
A. mldn
B. yootk
C. true
D. 程序出错
A.mldn
B.yootk
C.true
D.程序出错
答案:B