Write thread safe singleton class
Anonymous
class Sigleton { private static volatile instance; public static Sigleton getInstance() { if(instance == null) { syncronized (Singleton.class) { if(instance == null ) { instance = new Sigleton(); } } } return instance; } }
Check out your Company Bowl for anonymous work chats.