ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

When is Singleton not a Singleton in Java?

user-image
تم إضافة السؤال من قبل Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
تاريخ النشر: 2014/04/23
Javed Khan
من قبل 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

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟