Pergunta de entrevista da empresa 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.

Resposta da entrevista

Sigiloso

22 de out. de 2014

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

1