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
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
307
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
98%
Success Rate