Geek Culture
Published in

Geek Culture

Singleton Pattern Using Enum in Java

What is a singleton and how to implement it

Singleton is a design pattern used to create a unique instance of a class: through the runtime, there will be only one.

The classic implementation of this pattern uses a combination of static methods to check if there…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store