R

Ram Sharma • 193.84K Points
Coach

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);
  • (A) 5,2
  • (B) 5,5
  • (C) 5,10
  • (D) Compiler error

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.