Ask Question
30 June, 21:10

Which method (s) must a serializable class, implement?

? It must always implement both readObject andwriteObject

? It must implement either readObject orwriteObject, or both, depending upon the

desired behavior

? No Need to implement any methods

? None of the given option is correct

+1
Answers (1)
  1. 30 June, 23:48
    0
    Answer: None of the given option is correct

    Explanation:

    A serializable class is implemented, when an object is serializable interface. If you want to serialize one of your classes, then the class must implemented in the Serializable interface. To implement the serializable interface, convert a class into the series of bytes and when serializable object might reference your class. Serializable classes are useful when you wanted to persist cases of the class or send them over wire.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which method (s) must a serializable class, implement? ? It must always implement both readObject andwriteObject ? It must implement either ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers