conditional operator
All > Technology > Programming > Java
- An operator taking three operands - a ternary operator. The conditional operator (
?:) is used in the formbexpr ? expr1 : expr2
wherebexpris a boolean expression. The the boolean expression has the valuetruethen the result of the operation is the value ofexpr1, otherwise it is the value ofexpr2.
David J. Barnes - Cite This Source - This Definition - assignment operator, binary operator, fully evaluating operator, new operator, operator precedence, precedence rules, short-circuit operator, ternary operator, unary operator