💻
Software Development
Search...
Ctrl
K
Technical Knowledges
Technical Knowledges
GraphQL
Design Pattern
Creational Design Patterns
Singleton
Code example
Java
Naïve Singleton (single-threaded)
Naïve Singleton (multithreaded)
Thread-safe Singleton with lazy loading
Previous
Thread-safe Singleton
Next
Naïve Singleton (single-threaded)