Pergunta de entrevista da empresa OpenText

What are the ways in which we can synchronize a Singleton class?

Resposta da entrevista

Sigiloso

19 de out. de 2017

I have explained the normal strategy of wrapping the Singleton class with 'synchronized' keyword. Interviewer told its very bad and they want me to come up with another approach.