Number Types
- int: integers, no fractional part
1, -4, 0
- double: floating-point numbers (double precision)
0.5, -3.11111, 4.3E24, 1E-14
- A numeric computation overflows if the result falls outside the
range for the number type
int n = 1000000;
System.out.println(n * n); // prints -727379968
- Java: 8 primitive types, including four integer types and two
floating point types