Multiple choice

What is the output of the given program?

public class HelloWorld {
 public static void main(String[] args) {
  int x = 24;
  int y = 42;
  int z = 37;
  int a = 22;
  System.out.println(x & y | z ^ a);
 }
}

  1. 60

  2. 59

  3. 58

  4. 57

  5. 56

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This is the correct answer.