What Interface Must an Object Implement Before it Can be Written to a Stream as an Object
An object must implement the Serializable or Externalizable interface before it can be written to a stream as an object. In Java, for an object to be written to a stream as an object, it must implement the Serializable interface. The Serializable interface is a marker interface, meaning it doesn’t declare any methods. Its purpose is to indicate to … Read more