Blip (Portugal) Interview Question

Design a thread safe singleton?

Interview Answer

Anonymous

May 10, 2023

I proceeded to write a singleton with a synchronized method, but they asked for some specifics thing like blocking only the creating instance part using synchronized with a lock, but I didn't know that.