next up previous
Next: Methods that modify variables Up: Unit 04 Previous: The data type int

Variables of primitive types and variables of type reference to an object

There is a substantial difference between variables of type reference to an object and variables of primitive types:

Example:


next up previous
Next: Methods that modify variables Up: Unit 04 Previous: The data type int