![](http://www.cs.pomona.edu/~kim/icon/blank.png) | ![Top](http://www.cs.pomona.edu/~kim/icon/up.png) | ![Primitive Types](http://www.cs.pomona.edu/~kim/icon/previous.png) | A Few Other Primitive Types |
A Few Other Primitive Types
Java includes four commonly used numeric types:
- int,
- long,
- float, and
- double
We discussed
- Operations +, -, *, /, and % on ints
- Operations +, -, *, and / on doubles
- "Mixed mode" arithmetic
- Precedence rules to determine the order of operations.
![](http://www.cs.pomona.edu/~kim/icon/blank.png) | ![Top](http://www.cs.pomona.edu/~kim/icon/up.png) | ![Primitive Types](http://www.cs.pomona.edu/~kim/icon/previous.png) | A Few Other Primitive Types |