Interview question: about Java serialization and singletons
Posted
by subhashis
on Stack Overflow
See other posts from Stack Overflow
or by subhashis
Published on 2010-06-02T14:54:13Z
Indexed on
2010/06/02
15:03 UTC
Read the original article
Hit count: 149
In an interview the interviewer asked me the following question: is it possible to serialize a singleton object? I said yes, but in which scenario should we serialize a singleton?
And is it possible to design a class whose object can not be serialized?
© Stack Overflow or respective owner