Domanda di colloquio di NSEIT

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

Risposta di colloquio

Anonimo

23 ago 2022

By marking the method with synchronized keyword.