Serialization
- If member does not implement serialization, which exception would be thrown?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
If member of a class does not implement serialization, NotSerializationException will be thrown.
- Default Serialization process cannot be overridden.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: E
Default serialization process can be overridden.
- Which of the following methods is used to avoid serialization of new class whose super class already implements Serialization?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
writeObject() and readObject() methods should be implemented to avoid Java serialization.
- Which of the following methods is not used while Serialization and DeSerialization?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Using readObject(), writeObject(), readExternal() and writeExternal() methods Serialization and DeSerialization are implemented.
- Serializaed object can be transferred via network.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: E
Serialized object can be transferred via network because Java serialized object remains in form of bytes which can be transmitted over network.