The singleton design pattern deals with one and only one instance of an object that encapsulates the control of the object from a common place.
The singleton design pattern deals with one and only one instance of an object that encapsulates the control of the object from a common place.Benefits:
Singleton pattern controls access to unique instances, reduce name space, permits a variable number of instances, allows refinement of operations and representations, and provides more flexibility than class operations.
Read more at:
http://www.javajazzup.com/issue3/page44.shtml
Ads