Previous | Next | Trail Map | Learning the Java Language | Objects and Classes in Java

The Life Cycle of an Object

Typically, a Java program creates many objects from a variety of classes. These objects interact with one another by sending each other messages. Through these object interactions, a Java program can implement a GUI, run an animation, or send and receive information over a network. Once an object has completed the work for which it was created, it is garbage-collected and its resources are recycled for use by other objects. Follow the links below to learn about the typical phases of the life of an object:
  1. Creating Objects
  2. Using Objects
  3. Cleaning Up Unused Objects


Previous | Next | Trail Map | Learning the Java Language | Objects and Classes in Java