Question 8:

What is printed when the following code segment is executed?

---

int a = 5;
int b = 0;

if (b != 0 && a / b > 2) {
    System.out.println("X");
} else if (b == 0 || a++ > 3) {
    System.out.println("Y");
} else {
    System.out.println("Z");
}

System.out.println(a);

---

A) X, then 5
B) Y, then 5
C) Y, then 6
D) Z, then 6
