πŸ“Š JAVA
Q. What is the output of the below Java code snippet?
Code:
int a = 2 - - 7;
System.out.println(a);
  • (A) -5
  • (B) 10
  • (C) 9
  • (D) Compiler Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) 9

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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