Types of Operator in Java
- Unary Operator
- postfix ( expr++ expr-- )
- prefix (++expr --expr +expr -expr ~ ! )
- Arithmetic Operator
- multiplicative ( * / % )
- additive ( + - )
- Bitwise Operator
- bitwise AND ( & )
- bitwise exclusive OR ( ^ )
- bitwise inclusive OR ( | )
- Shift Operator
- Relational Operator
- comparison ( < > <= >= instanceof )
- equality (== != )
- Logical Operator
- logical AND ( && )
- logical OR ( || )
- Ternary Operator ( ? : )
- Assignment Operator ( = += -= *= /= %= &= ^= |= <<= >> = >>>= )
No comments:
Post a Comment