Java   View all facts   Glossary   Help
syntactic unit > symbol > operator
Next symbolliteral    Upsymbol    Previous symbolname   

operator comparison table
Subject have syntax have cause is a synonym of is a kind of is a subtopic of have example is an instance of have purpose shorten has definition use return see also
.  precedence dot operator Operators operatorto perform a simple function of 1 to 3 arguments  to access an instance variable of an object in Java, for example: b.variableNamea value called its result 
?: 
expression ? op1 : op2
right to left associativity conditional operator Operators tertiary operatorto evaluate the expression on the left and return one value if the expression is true and a different value if the expression if falsecode but can also make code harder to understand  the value of the selected expression 
arithmetic operator  precedence  operatorOperators  to perform basic arithmetic operations   a value called its result 
assignment operator  precedence  operatorOperators  to perform a simple function of 1 to 3 arguments An operator that performs assignment to the variable on the left and returns the value of the expression on the right a value called its result 
binary operator  precedence  operatorOperators  to perform a simple function of 1 to 3 arguments An operator that has 2 argumentsan infix notationa value called its result 
bitwise operator  precedence  operatorOperators  to perform a simple function of 1 to 3 arguments An operator that performs a boolean operation bit by bit on two integral types of the same length a value called its result 
cast operator 
(type) expression
precedence   Objects operatorto convert an expression of one type into another type   a value called its result 
identity comparison operator  precedence  operatorOperators  to perform a simple function of 1 to 3 arguments   a value called its result 
logical operator  precedence conditional operatoroperatorOperators  to perform operations on boolean operand(s)   a boolean 
new operator  precedence
  1. a new instance of the given class is created
  2. memory is allocated for it
  3. a constructor is called
creation operator OperatorsRectangle rect = new Rectangle();operatorto create a new object An operator that creates a new object (allocates space for it). a value called its resultnew
postfix operator  precedence  operatorOperators  to evaluate the value of the operand and then to perform the operation   a value called its result 
prefix operator  precedence  operatorOperators  to perform the operation and then to evaluate the value of the operand   a value called its result 
relational operator  precedence  operatorOperators  to perform a simple function of 1 to 3 arguments   a value called its result 
short circuit operator  precedence  operatorOperators  to perform a simple function of 1 to 3 arguments   a value called its result 
tertiary operator  precedence  operatorOperators  to perform a simple function of 1 to 3 arguments An operator that has 3 arguments a value called its result 
unary operator precedence  operatorOperators  to perform a simple function of 1 to 3 arguments An operator that has 1 argument a value called its result 

Next symbolliteral    Upsymbol    Previous symbolname