试题详情
单项选择题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
  • 关注下方微信公众号,在线模考后查看

热门试题