You are viewing a single comment's thread. Return to all comments →
class Singleton{ private Singleton() {} public String str; private static final Singleton instance = new Singleton(); public static Singleton getSingleInstance() { return instance; } }
Seems like cookies are disabled on this browser, please enable them to open this website
Java Singleton Pattern
You are viewing a single comment's thread. Return to all comments →