Q. What is the output of the Java program?
Code:
byte b = 0b00000101; System.out.print(b + ","); b = (byte)~b; System.out.print(b);
β
Correct Answer: (C)
5, -6
byte b = 0b00000101; System.out.print(b + ","); b = (byte)~b; System.out.print(b);
You must be Logged in to update hint/solution