Java Types
Each Java variable or expression has a definite type, given by a declaration such as
- int i;
- double x, y, z;
- Color c;
There are three "types" of types!
- There are Primitive or Simple types such as ints or booleans which are built-in.
- New composite types (objects) can be constructed in terms of classes and interfaces. The type of an object is its class or interface
- Arrays we will see are a sort of "almost" object!