Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

When is Singleton not a Singleton in Java?

user-image
Question added by Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date Posted: 2014/04/23
Javed Khan
by Javed Khan , Senior Programmer Analyst , Barclays Technology

Multiple singletons in two or more virtual machines

Multiple singletons simultaneously loaded by different class loaders

Singleton classes destroyed by garbage collection, then reloaded

Purposely reloaded singleton classes

Multiple instances resulting from incorrect synchronization

Multiple singletons arising when someone has subclassed your singleton

Copies of a singleton object that has undergone serialization and deserialization

Multiple singletons created by a factory specially asked to create multiple objects

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.