Skip to content

What is Enum Singleton in Java

4
  • tan
  • Anupam Patra
What is Enum Singleton in Java

From Java 5 onwards there is a new way to implement Singleton design pattern, by using Enum. Enum has some distinct benefits in terms of thread-safety during instance creation, serialization guarantee by JVM and amazingly reduce amount of code which make

Read this post on javarevisited.blogspot.com


Popular Articles by this blogger