the below code is singleton class:
it has private constructor. What else, is it code implemented in
synchronized public static method getObjectReference() makes this class singleton ?
what do you think , am i correct ?
one more thing
and what about the Class class which has the below code:
/*
* Constructor. Only the Java Virtual Machine creates Class
* objects.
*/
private Class() {}
means it is singleton Class.
while it doesn't have the public static synchronized Class(){ }