Home / Programming MCQs / JAVA MCQs / Question


Ram Sharma • 174.83K Points

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

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

You must be Logged in to update hint/solution


Login to discuss.