很满意很开心,躺在床上不到30分钟就听明白了,比老师絮絮叨叨在课堂上2个小时要明白得多,很感谢慕课网有这样的好课,相对于其它教育平台,IT学习首选慕课网,大爱啊
2018-04-11
参考文章:https://liuyanzhao.com/3212.html
public class Singleton {
private static class LazyHolder {
private static final Singleton INSTANCE = new Singleton();
}
private Singleton (){}
public static final Singleton getInstance() {
return LazyHolder.INSTANCE;
}
}
public class Singleton {
private static class LazyHolder {
private static final Singleton INSTANCE = new Singleton();
}
private Singleton (){}
public static final Singleton getInstance() {
return LazyHolder.INSTANCE;
}
}
2017-11-17