下面代码的运行结果为()public static void main(String[] args) {int x = 1, y = 1, z = 1;if (x-- == 1 && y-- == 1 || z-- == 1)System.out.println("x=" + x + ",y=" + y + ",z=" + z);}
A. x=0,y=1,z=1
B. x=0,y=2,z=2
C. x=0,y=2,z=1
D. x=0,y=0,z=1
尝试运行下面的代码会发生什么?(C )public class Test {public static void main(String[] args) {boolean m = true;if (m = false) {System.out.println("true");} else {System.out.println("false");}}}
A. 输出字符串”true”
B. 输出字符串”false”
C. 编译时错误
D. 运行时错误