Lesson 9

The following list summarizes the important points about operators that were covered in this module:

- The postfix operators
`++`

and`--`

return the value of a variable before incrementing or decrementing it. - The unsigned right shift operator
`>>>`

always shift's in zero bits for high-order bits. - The operators
`&&`

,`||`

, and`?:`

may not evaluate all operands before returning a value. - Numeric promotion is used with unary and binary numeric operators.
- When a
`String`

object appears as an operand to the`+`

operator, the other operand is automatically converted to a`String`

object. - Casting is used to convert numeric values and object references prior to assignment.
- The
`==`

and`!=`

operators are used to compare object references, not object values. - The
`equals()`

method of the`Object`

class is used to compare objects by value. - The simple assignment operator does not cast numeric values, however the assignment operators that perform binary arithmetic do cast numeric values before assignment.
- The simple assignment operator is right-associative and returns the value of an assignment.
- Expressions are evaluated based on the use of parentheses, operator precedence, and operator associativity.

*Cast:*To convert from one type to another.*Short-circuit:*A boolean operation in which one operand determines the result of the operation. z*Numeric promotion:*The conversion of numeric values to a larger type to support operations on that type.-
*Right associative:*Operations that are right associative are performed in a right to left manner. That is, x op y op z is evaluated as x op (y op z). -
*Left associative:*Operations that are left associative are performed in a left to right manner. That is, x op y op z is evaluated as (x op y) op z. *Precedence:*The order in which operations are performed.

Click the Exercise link below to check your understanding of Java operators.

**Java Output Operator - Exercise**

Click the Quiz link below to check your understanding of Java operators.

**Java Operators - Quiz**