I was doing research on singleton and I have developed a very basic singleton class..
public class SingletonObject { private static SingletonObject ref;
Via reflection, set ref = null. By re-assigning it as null, the logic to lazily construct the singleton will be triggered again on the next invocation of getSingletonObject.
ref = null
null
getSingletonObject