Java 线程安全的单例

public class Singleton {

    private static class SingletonHolder {
        private static Singleton sSingleton = new Singleton();
    }

    public static Singleton getInstance() {
        return SingletonHolder.sSingleton;
    }

    private Singleton() {

    }
}

基于以下事实: