int x = -5, y = 0;
if (++x > 0 || ++y > 0) {
System.out.println("A");
} else {
System.out.println("B");
}
System.out.println(x + " " + y);
++x → x = -4,判斷 -4 > 0 為 false。|| 短路:左側 false,必須計算右側。++y → y = 1,判斷 1 > 0 為 true。if 輸出 A。x = -4, y = 1。輸出:A 換行 -4 1。選項 A。