Live quiz

java - Part 17

Question 1 of 25 Hints left: 3
Q1

What will be the output of the following Java program? class Output { public static void main(String args[]) { int a = 5; int b = 10; first: { second: { third: { if (a == b >> 1) break second; } System.out.println(a); } System.out.println(b); } } }

  • A
  • B
  • C
  • D