Design Patterns, ever since Gang of Four published them as a catalog, continues to influence the developer community in more than one way. Java developers are no exception. This blog finds several ways in which these patterns can be implemented and applied using the unique features of Java programming language.

About the author: Surekha Akula Sureha Akula is a Systems Programmer at Infosys Technologies, Bangalore, India. She works on J2EE systems and her hobbies include technology, painting and singing.

Java & Patterns

2010-10-23

Unbreakable Singleton using Java Enum

Singleton is one of the very popular design patterns that all most all of us thought about it at one point or other. Unfortunately, most of the implementations are not really strong enough against the odds. Here I am presenting an Enum based implemetation while reviewing the pros and cons of other options.