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
πŸ’¬ Discuss
βœ… Correct Answer: (B) 5,5

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
239
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
89%
Success Rate