Operators Java
Java provides more opearators like as
arithmetic, bitwise, relational, and logical. Java also defines some
additional operators that ….
- Unary Operator,
- Arithmetic Operator,
- Shift Operator,
- Relational Operator,
- Bitwise Operator,
- Logical Operator,
- Ternary Operator and
- Assignment Operator.
Java Operators
Operators | Category | Simble |
---|---|---|
Unary | postfix | expr++ expr-- |
prefix | ++expr --expr +expr -expr! | |
Arithmetic | multiplicative | * / % |
additive | + - | |
Shift | shift | << >> >>> |
Relational | comparison | < > <= >= instanceof |
equality | == != | |
Bitwise | bitwise AND | & |
bitwise exclusive OR | ^ | |
bitwise inclusive OR | | | |
Logical | logical AND | && |
logical OR | || | |
Ternary | ternary | ? : |
Assignment | assignment | =, +=, -=, *=, /=, %=, &=, ^=, |=, <<=, >>=, >>,>= |
Total opearator java
=, +=, -=, *=, /=, %=, &=, ^=, |=, <<=, >>=, >>,>= ,? :, * / %, << >> >>>, < > <= >= instanceof, expr++ expr–, ++expr —expr +expr –expr!.
BackLinks -AndroWep