Frage im Vorstellungsgespräch bei NSEIT

How can you let this Singleton class getInstance() method be called from multiple threads?

Antwort im Vorstellungsgespräch

Anonym

23. Aug. 2022

By marking the method with synchronized keyword.