Effective Java with Groovy - Singleton
Singleton is one of the most popular patterns among the ones from the Gang-of-Four design patterns. Many times, we would require just one instance of a class. Say our application connects to exactly one database; then, we would need one instance of the class that manages database connections. If developers