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:
NotSerializableException
?implements Serializable
clause for my class?When you are talking about NotSerializableException
it is throw when you want to serialize an object, which has not been marked as Serializable
- that's all, although when you extend non serializable class, and add Serializable
interface it is perfectly fine.
There is no data that can't be serialized.