public static String check(int x, int y) {
if (x != 0 && y / x > 1) return "yes";
return "no";
}
// Call: System.out.println(check(0, 10));What is printed?
- A
yes
- Bcheck_circle
no
- C
ERROR
- D
ArithmeticException
Explanation
x!=0 is false; short-circuit prevents division by zero. Returns "no".