Java不能使用New去建立对象的状况

本人在学习单例模式的时候看到了这样的单例模式的建立方法:函数 public class SimpleSingleton { private static SimpleSingleton singleInstance = new SimpleSingleton(); private SimpleSingleton(){ } public static SimpleSingleton getInsta
相关文章
相关标签/搜索