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