Operator is a special symbol that
is used to perform operations. There are many types of operators in
java such as unary operator, arithmetic operator, relational operator,
shift operator, bitwise operator, ternary operator and assignment
operator.
| Operators | Precedence |
|---|---|
| postfix | expr++ expr-- |
| unary | ++expr --expr +expr -expr ~ ! |
| multiplicative | * / % |
| additive | + - |
| shift | << >> >>> |
| relational | < > <= >= instanceof |
| equality | == != |
| bitwise AND | & |
| bitwise exclusive OR | ^ |
| bitwise inclusive OR | | |
| logical AND | && |
| logical OR | || |
| ternary | ? : |
| assignment | = += -= *= /= %= &= ^= |= <<= >>= >>>= |
For more Visit: http://www.quontrasolutions.com/blog/category/java
No comments:
Post a Comment