Frage im Vorstellungsgespräch bei Tradeweb

Thread safe Singleton implementation.

Antwort im Vorstellungsgespräch

Anonym

19. Sept. 2018

principles: private static obj private constructor public static synchronized getInstance function Best double-checked locking: check null -> synchronized -> check null -> new obj