Title: Arithmetic Primitive Sizes, Casting, Shortcuts (JPHB)
Course: CPS 161: An Intro to Programming with Java - DL MM MASTER > Section: Learning Units - Bb

Presentations and Videos

- Arithmetic Primitive Sizes, Casting, Shortcuts (JPHB) lecture video (Time: 00:00)
- Arithmetic Primitive Sizes, Casting, Shortcuts (JPHB) document

- Primitive size ordering: byte, short, int, long, float, double
- Storing smaller primitives into larger primitives
- Storing larger primitives into smaller primitives using casting operations
- The "=" shortcuts: +=, -=, *=, /=, %=
- More shortcuts(++, --): Post Increment, pre increment, post decrement, pre decrement