Beginner
Java
Q32 / 100
What is the ternary operator in Java?
Correct! Well done.
Incorrect.
The correct answer is A) condition ? valueIfTrue : valueIfFalse
A
Correct Answer
condition ? valueIfTrue : valueIfFalse
Explanation
The ternary operator takes three operands: a condition, a value if true, and a value if false, all in one expression.
Progress
32/100