Fifth International World Wide Web Conference
Operators
- Both integer and floating point (arithmetic) types support all of the
standard arithmetic operations:
- addition (+), subtraction (-)
- multiplication (*), division (/), remainder (%)
- increment (++), decrement (--)
- comparison (==, !=, <, <=, >, >=), always yielding a
boolean
result
- Bitwise operators (operate on integer or boolean types):
- and (&)
- or (|)
- not (~)
- left shift (<<)
- signed right shift (>>)
- unsigned right shift (>>>)
Java - An Introductory Language Tutorial
(E.A.Johnson)