Question: Moving to the next question prevents changes to this answer. Question 1 public static void finder(boolean x, boolean y) { if (x) { System.out.println(X); }

Moving to the next question prevents changes to this answer. Question 1 public static void finder(boolean x, boolean y) { if (x) { System.out.println("X"); } else if (x && y) { System.out.println("x && Y"); } else { if (!y) { System.out.println("IY"); } else { System.out.println("Z"); } } } The method above is given. Find and select which of the following is the correct answer. O a. If x and y both are true, then the output when you run the program is "X &&Y". O b. If x is true and y is false, then the output when you run the program is !Y". O c. If x is false and y is true, then the output when you run the program is "Z". O d. If x and y both are false, then the output when you run the program is "Z". O e. None of the above is correct
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
