Java   View all facts   Glossary   Help
syntactic unit > symbol > operator > ?:
Next operatorarithmetic operator    Upoperator, tertiary operator    Previous operator.   

?: comparison table
Subject shorten have syntax has definition have purpose have is a synonym of is a kind of return is partitioned into is an instance of
operator  A symbol used for arithmetic and logical operationsto perform a simple function of 1 to 3 argumentsprecedence symbola value called its resultarithmetic operator , relational operator, logical operator, bitwise operator, logical operator, assignment operator 
tertiary operator  An operator that has 3 argumentsto perform a simple function of 1 to 3 argumentsprecedence operatora value called its result  
?:code but can also make code harder to understand
expression ? op1 : op2
 to evaluate the expression on the left and return one value if the expression is true and a different value if the expression if falseright to left associativityconditional operator the value of the selected expression tertiary operator

Next operatorarithmetic operator    Upoperator, tertiary operator    Previous operator.