Examples for singleton design pattern in Java
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/java/com/swathisprasad/singleton correct instance field declaration Jan 13, 2019
LICENSE Initial commit Jan 6, 2019
README.md Update README.md Jan 6, 2019
pom.xml add singleton examples Jan 6, 2019

README.md

java-design-pattern-singleton

Singleton design pattern is used when you want to have a single instance of a given class. It is a creational design pattern wherein we deal with the creation of objects.

This project contains examples for various ways of defining singleton.