Q. What is the output of Java program with Right Shift Operator (>>)?
Code:
byte b = 0b00000101; System.out.print(b + ","); b = (byte)(b >> 1); System.out.print(b);
β
Correct Answer: (C)
5, 2