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.
Loading...
Related Quiz
- In what scenarios would a for loop be less suitable compared to a while loop, especially concerning iterator-based operations?
- How does type inference work with Lambda expressions in Java?
- In Java, if a class implements an interface and does not provide implementations for all its methods, it must be declared as ________.
- To handle a transaction in JDBC, first, you must set the auto-commit mode to ________ before starting the transaction.
- Which of the following loops will always execute its code block at least once?