beginnerCreational Patterns (Java)

What is the Singleton pattern? Implement it using double-checked locking.

Tests whether you can write a correctly synchronized Singleton, not just describe the pattern conceptually.

This is a Pro question

Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.

What is the Singleton pattern? Implement it using double-checked locking.

Next Step

Continue to Singleton — Eager vs Lazy vs Double-checked locking vs Enum Singleton — compare all four approaches.← Back to all Design Patterns & LLD questions