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).

Next Step

Continue to Strategy pattern vs State pattern — both swap behavior at runtime, so what actually distinguishes them?← Back to all Design Patterns & LLD questions