A

Admin • 825.56K Points
Coach

Q. What is the output of the Java program?

Code:
byte b = 0b0000101;
System.out.print(b + ",");
b &= 0b00001111;
System.out.print(b);
  • (A) 5, 0
  • (B) 5,5
  • (C) 5,15
  • (D) None of the above
  • Correct Answer - Option(B)
  • Views: 13
  • Filed under category Java
  • Hashtags:

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.

Be the first to start discuss.