April 2004
Intermediate to advanced
520 pages
10h 10m
English
In general, an object may need to deal with external resources such as files, databases and network connections as part of its implementation to provide the services it is designed for. The Explicit Object Release pattern suggests that when such an object is no longer needed, the external resources tied up with the object should be released explicitly, in a timely manner.
The Java programming language provides the following two ways to design the mechanism to release external resources explicitly:
Some object-oriented programming languages require a programmer to explicitly destroy objects when they are no longer needed. In the Java programming ...