Ericsson interview question

How to create a singleton class in Java ?

Interview Answer

Anonymous

Jun 25, 2021

Related to Design Patterns, we can find the solution on the internet (don't forget to create a synchronized constructor to avoid multiple access by multiple threads in the meantime).