public class Test {
public static void main(String[] args) {
int x = 5;
boolean b1 = true;
boolean b2 = false;
if ((x == 4) && !b2)
System.out.print("1");
System.out.print("2");
if ((b2 = true) && b1)
System.out.print("3");
}
} 2
3
12
23
123
编译出错
运行时程序抛出异常