R

Ram Sharma • 193.86K Points
Coach

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
  • Correct Answer - Option(C)
  • Views: 166
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics