Question d’entretien chez Tradeweb

Thread safe Singleton implementation.

Réponse à la question d'entretien

Utilisateur anonyme

19 sept. 2018

principles: private static obj private constructor public static synchronized getInstance function Best double-checked locking: check null -> synchronized -> check null -> new obj