How to make the perfect Singleton?

Keval Patel
6 min readMar 27, 2017

Design Patterns are popular among software developers. A design pattern is a well described solution to a common software problem. The Singleton is one of the Creational Design Patterns in Java.

What is the purpose of Singleton?

The purpose of the Singleton class is to control object creation, limiting the number of objects to only one. The singleton…

--

--

Keval Patel

www.kevalpatel2106.com | Android Developer | Machine learner | Gopher | Open Source Contributor