Question d’entretien chez Deloitte

How can you stop clone in a singleton java class?

Réponse à la question d'entretien

Utilisateur anonyme

20 mai 2020

Overide clone method and inside, throw new CloneNotSupportedException();

1