beginnerCreational Patterns (Java)
Can Singleton be broken? Name 4 ways (Reflection, Serialization, Cloning, Multithreading).
Tests whether you know Singleton isn't actually bulletproof, and how to defend against each specific attack.
This is a Pro question
Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.
Can Singleton be broken? Name 4 ways (Reflection, Serialization, Cloning, Multithreading).