Externalizable interface extends ______ interface and adds two methods into it.

  • Cloneable
  • Externalization
  • ObjectInput/Output
  • Serializable
The Externalizable interface in Java extends the ObjectInput and ObjectOutput interfaces and adds two methods into it: writeExternal and readExternal. These methods are used for customized serialization of objects. The other options are not related to the Externalizable interface.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *