Deutsche Bank Interview Question

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.

Interview Answer

Anonymous

Oct 22, 2014

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

1