Pregunta de entrevista de Deutsche Bank

I was asked to implement the Singleton pattern using lazy-loading, which was easy enough, but them the question continued with other implementations of the pattern specifically around multi-threading.

Respuesta de la entrevista

Anónimo

22 oct 2014

Realized now I should have used the init-on-demand holder idiom or implemented as an Enum

1