Q. What is the output of Java Program with Shift Right Fill Zeroes operator?
Code:
byte num = (byte)0b000_1000; System.out.print(num + ","); num = (byte)(num >>> 1); System.out.print(num);
β
Correct Answer: (B)
8, 4