Q. What is the output of the Java code snippet below?

Code:
int a = 20, b=30;
int total = a>10&&b<10?65:75;
System.out.println(total);
  • (A) 0
  • (B) 65
  • (C) 75
  • (D) Error: The left-hand side of an assignment must be a variable
πŸ’¬ Discuss
βœ… Correct Answer: (C) 75

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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