Singleton Design Pattern

Tutorials Shared by the Internet Community

Advertisements


Singleton Design Pattern

Singleton Pattern guarantees that only one Object is instantiated for a given class and provides a global point of access to this instance, so it avoi

Statistics

  • Total Hits - 1650

  • Total Votes - 5 votes

  • Vote Up - 2 votes

  • Vote Down - 3 votes

  • Domain - www.javatutsworld.com

  • Category - JAVA/Core JAVA

  • Submitted By - Mukarram Ali

  • Submitted on - 2017-08-06 13:35:22

Description

Singleton Pattern guarantees that only one Object is instantiated for a given class and provides a global point of access to this instance, so it avoid all sorts of problems likes program behavior, overuse of resources and other inconsistencies. This pattern is used for logging, database connections, file manager, configuration settings, caching and thread pool etc.

Source Website

Please use the following link to visit the site. There is a possibility that this content has been removed from the given URL or may be this site has been shut down completely.

http://www.javatutsworld.com/design-patterns/singleton-design-pattern.html

Broken  |   Save  |   Liked  |   Down

Advertisements