Hey, thanks a lot for pointing the error. Yes I have mentioned that as well but the idea was that even for less experienced people it is a very common interview question.
Yes. I am aware this is a common question in interviews. But it is also a 'tricky one'. Not knowing the drawbacks of using singletons is a common error in interviews.
I take a lot of interviews but don't ask about singletons.
Here there are 18 reasons of the problems they bring