What is the point of making the singleton instance volatile while using double lock?

Viewed 30852
private volatile static Singleton uniqueInstance

In a singleton when using double lock method for synchronization why is the single instance declared as volatile ? Can I achieve the same functionality without declaring it as volatile ?

5 Answers
Related