I\'ve found three ways of instantiating a Singleton, but I have doubts as to whether any of them is the best there is. I\'m using them in a multi-threaded environment and pr
Sample 1: Use if you don't need a lazy Singleton.
Sample 2: Never use - it gets confusing with too much classes. And an inner class just to hold one variable seems to be a bit unnecessary.
Sample 3: This is a lazy Singleton. Use it if you need it.