Java View all facts Glossary Help |
syntactic unit > symbol > operator > tertiary operator |
tertiary operator comparison table |
Subject | evaluate before | shorten | evaluate to | have syntax | be part of | have purpose | have | have syntax rule | is a subtopic of | is a synonym of | return | is an instance of |
---|---|---|---|---|---|---|---|---|---|---|---|---|
?: | another operator with lower precedence | code but can also make code harder to understand | its result | expression ? op1 : op2 | an expression | to evaluate the expression on the left and return one value if the expression is true and a different value if the expression if false | right to left associativity | bold = mandatory | Operators | conditional operator | the value of the selected expression | tertiary operator |
Next operator: unary operator Up: operator Previous operator: short circuit operator