Match the various implementations of singleton design patterns with their descriptions.
Thread-safe singleton
Match the advantages
Report a typo
Match the items from left and right columns
Static field initialization
Enum-based
Double-checked locking
Static block initialization
The Singleton object is available from the start of application, unable to handle exceptions
The shortest way with eager initialization
Allows to handle exceptions during eager initialization
An implementation with lazy initialization
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.