October 2, 2010 2 Comments
From time to time I met Java programmers that are not really sure how they should implement Singleton pattern properly.
(if you don’t have an idea what Singleton is just try Wikipedia: Singleton pattern).
And I’m not talking about proper implementation in threaded environment. But using most common implementation you find over internet you can easily create as many singletons as you like.
Just imagine you have common singleton implementation: