Primitive Types
Primitive types differ from object types:
- Primitive types don't need constructors. Object types do.
- Object types have methods, primitive types don't.
Therefore you can only send messages to object types.
How do we determine if two values are the same?
- For primitive types, use "=="
- For object types, use "==" only if you want to know they
are the same object. Use the "equals" method if you
want to know if they have the same characteristics.
For strings, be sure to only use ".equals" rather than "==" as it is possible
to have different string representing the same sequence of characters.