Can we avoid the use of Volatile in Singleton Pattern by making the getInstance() method synchronized in Java?
In most places, this is the implementation followed for Singleton Design Pattern.
In most places, this is the implementation followed for Singleton Design Pattern.