Which of the following methods is used to avoid serialization of new class whose super class already implements Serialization?
(a) writeObject()
(b) readWriteObject()
(c) writeReadObject()
(d) unSerializaedObject()
(a) writeObject()
(b) readWriteObject()
(c) writeReadObject()
(d) unSerializaedObject()
Correct answer is (a) writeObject()
Explanation: writeObject() and readObject() methods should be implemented to avoid Java serialization.