© S. Uchitel, 2004
Primitive and Reference Types
In Java all variables and parameters are:
stored in the program stack.
There are two kinds of types:
E.g. char, boolean, int, double, ...
Values are stored within the stack.
E.g. Strings, Arrays, Car, Lecturer, ...
References are stored within the stack.
Each class introduces a new reference type