πŸ“Š JAVA
Q. What is the output of the Java program?
Code:
byte b = 0b00000101;
System.out.print(b + ",");
b = (byte)~b;
System.out.print(b);
  • (A) 5, 10
  • (B) 5, -10
  • (C) 5, -6
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (C) 5, -6

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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