InterviewSolution
Saved Bookmarks
| 1. |
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()I have been asked this question by my school teacher while I was bunking the class.My query is from Serialization in division Serialization & Networking of Java |
|
Answer» CORRECT ANSWER is (a) writeObject() EXPLANATION: writeObject() and readObject() METHODS should be implemented to avoid Java serialization. |
|