TIAA Interview Question

Create a singleton design pattern with TWO Objects? Few SCJP questions with poorly written related to overloading?

Interview Answer

Anonymous

Jan 24, 2019

Created Singleton Pattern and I asked if I need to make it threadsafe or to guard it from being cloned or to avoid getting new object with deserialization or reflection.