View RSS Feed

My Java Tips

  1. Singleton - Creational Design Pattern

    by , 11-20-2011 at 07:14 PM (My Java Tips)
    The Singleton Design Pattern is the most commonly used design pattern in Java. The Singleton Design Pattern is a Creational Design Pattern. It governs the instantiation process. Sometimes in programming only one object is required across the system. The Singleton Design Pattern is used to achieve exactly that, that is to restrict instantiation of a class to one object. The Singleton Design Pattern ensures a class has only one instance, and provides a global point of access to it.


    ...