I have been recently asked about singleton pattern which i aptly explained. Following that I was asked "how is singleton pattern implemented in JVM?"
I know that we can implement the singleton pattern for class A by checking if an instance is already present and then create it.
But i myself did not get that question..so posted it if anyone of you could help me out...