多选题 Given:
2. public class Wacky {
3. public static void main(String[] args) {
4. int x = 5;
5. int y = (x < 6) ? 7 : 8;
6. System.out.print(y + " ");
7. boolean b = (x < 6) ? false : true;
8. System. out .println (b + " ");
9. assert(x < 6) : "bob";
10. assert( ((x < 6) ? false : true) ) : "fred";
11. } }
And, if the code compiles, the invocation:
java -ea Wacky
Which will be contained in the output? (Choose all that apply.)
【正确答案】 A、D、F
【答案解析】