單項選擇題

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.

微信掃碼免費搜題