Objects and Classes in Java |
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:
Objects and Classes in Java |