Using Objects
This section is based on parts 1 and 2 of the notes,
Drinks Machines, part 1 and
Drinks Machines, part 2
Practical exercises supporting this section are in
Exercise sheet 1.
When you have completed this section you should be able to:
- Write Java code in which objects are created and methods are called on them
- Identify occasions where Java objects get aliased, and know how this
affects program execution
- Know the possible effects of a Java method call
- Know the difference between mutable and immutable objects
- Understand how a static method call executes in its own environment
- Appreciate the role of Java types in putting code together
- Identify when Java objects go out of scope and garbage collection is applied
Matthew Huntbach
Last modified: 30 June 2006