R

Ram Sharma • 193.88K Points
Coach

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
  • Correct Answer - Option(C)
  • Views: 240
  • 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.


Question analytics