Ask Question

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

+3
Answers (1)
  1. 2 September, 03:37
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers