Skip to content

Design Pattern

Abhishek Khare edited this page Aug 9, 2017 · 4 revisions

Singleton - Singleton pattern restricts the instantiation of a class and ensures that only one instance of the class exists in the java virtual machine.

  • Basic
  • ThreadSafe
  • As Enum
  • Thread Safe with Holder static class.

Adaptor -

Clone this wiki locally