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.