If the Serializable
interface is just a Marker-Interface that is used for passing some-sort of meta-data about classes in java - I'm a bit confused:
After reading the process of java's serialization algorithm (metadata bottom-to-top, then actual instance data top-to-bottom), I can't really understand what data cannot be processed through that algorithm.
In short and formal:
- What data may cause the
NotSerializableException
? - How should I know that I am not supposed to add the
implements Serializable
clause for my class?