boolean bool = true; if(bool = false) { System.out.println(“a”); } else if (bool) { System.out.println(“c”); } else if (!bool) { System.out.println(“c”); } else { System.out.println(“d”); } What is the result?()
- A、 a
- B、 b
- C、 c
- D、 d
- E、 Compilation fails.
正确答案:C
答案解析:有

微信扫一扫手机做题