This section introduces those design patterns associated with the Java file, streams and networking packages.
We now continue our discussion of creational design patterns.
Like the Factory Method design pattern, the Abstract Factory design pattern allows a system to determine the subclass from which to instantiate an object at runtime. Often, this subclass is unknown during development. However, Abstract Factory uses an object known as a factory that uses an interface to instantiate objects. A factory creates a product, which in this case is an object of a subclass determined at runtime.
The Java socket library in package java.net ...