Home / Programming MCQs / JAVA MCQs / Question

R

Ram Sharma • 174.83K 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

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.