As we know, Serializable is a Marker interface (i.e. an interface without any methods).
So, I was wondering how to implement this interface so that the object of the implementation class is saved. Since besides the name Serializable, nothing exists for this interface.
And are there any other functions that we get by implementing this interface.
Is it possible to create a similar markup interface that does the same job with a different name? (This question is just a try.)
EDIT: May I extend the Serializable interface. and the advanced interface will also have the same property.
source
share