How to use Enum as Singleton in Java with Example

Tutorials Shared by the Internet Community

Advertisements


How to use Enum as Singleton in Java with Example

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

Statistics

  • Total Hits - 35953

  • Total Votes - 130 votes

  • Vote Up - 55 votes

  • Vote Down - 75 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Getting Started

  • Submitted By - Javin Paul

  • Submitted on - 2012-11-01 15:37:10

Description

    More detail...


Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements