πŸ“Š JAVA
Q. What is the output of this Java snippet?
int a = 0b111;
System.out.println(a);
  • (A) 111
  • (B) 7
  • (C) 8
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 7

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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