A

Admin • 828.03K Points
Coach

Q. Choose a possible error with a Ternary operator while compiling a Java program.

  • (A) The left-hand side of an assignment must be a variable.
  • (B) void is an invalid type for the variable
  • (C) Type mismatch: cannot convert from void to int
  • (D) All of the above
  • Correct Answer - Option(D)
  • Views: 9
  • Filed under category Java
  • Hashtags:

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.