I thought class that implements an interface must implement all of the interface’s methods,why classes that implements Serializable interface implements none interface’s methods ?
I thought class that implements an interface must implement all of the interface’s methods,why
Share
Some interfaces act simply as markers for classes. Serializable is one of them. The methods are there only in case your object requires special handling in order to be serialized and deserialized.