Stack and Heap
- Local variables (method variables) live on the stack.
- Objects and their instance variables live on the heap. Literals and Primitive Casting
- Integer literals can be decimal, octal (e.g. 013), or hexadecimal (e.g. 0x3d).
- Literals for longs end in L or l.
- Float literals end in F or f, double literals end in a digit or D or d.
- The boolean literals are true and false.
- Literals for chars are a single character inside single quotes: 'd'.