Answer:
If a Singleton class is serialized and then De-serialized multiple times, there will be multiple objects which will violate the principles of Singleton pattern. Therefore it should be serialized and De-serialized only once !
Thanks and Regards
Akiii
Asked In: Many Interviews |
Alert Moderator