Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

When is Singleton not a Singleton in Java?

user-image
Question ajoutée par Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date de publication: 2014/04/23
Javed Khan
par 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