- Variables allow you to store values in programming.
- Variables must be defined before they can be used.
- Assignment copies the value on the right to the variable on the left.
- = is assignment NOT equals
- == is equals :)
- A variable must have a name and a data type
- int and long store whole numbers
- float and double store decimal numbers
- int, long, float, double, boolean and char are known as primitive types.
- String store text and are objects not primitive types.
- You must convert between data types if you want to mix them.
- You must manually cast to demote variables.
- Java will automatically promote data types if it can.
- A literal is a hardcoded value.
- String literals are always surrounded by quotation marks