What interfaces can be implemented in order to create a class that can be serialized?
Choose all that apply.
readObject
and writeObject
. readObject
and writeObject
. readExternal
and writeExternal
B, E.
There are two ways to ensure that a class can be serialized.
You can implement Serializable, which is a tagging interface that defines no methods.
Or you can implement Externalizable, which defines the readExternal
and writeExternal
methods.