Question d’entretien chez Oracle

singleton pattern

Réponse à la question d'entretien

Utilisateur anonyme

21 mai 2014

A pattern where the class has a private constructor, and getInstance method which creates an object just once, and subsequent calls return the reference to this object.