What is deserialization and how do we do deserialization?
Answer Posted / javamasque
Deserialization is a process of retrieving object from byte stream. We have to fallow below steps for de-serialization
1. The object to be serialized need to implement java.io.Serializable / java.io. Externalizable interface.
2. Generate serial version id for that serializable object.
3. ObjectInputStream is used to read [readObject() or readExternal()] object.
4. FileInputStream is used to read from flat file.
5. The flat file extension should be (<file-name>.ser)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How many digits is int32?
What are the types of methods in java?
What is class level lock ?
Is array an object in java?
what are different ways in which a thread can enter the waiting state? : Java thread
Can we start a thread twice in java?
Can vector have duplicates in java?
Why do I need to declare the type of a variable in java?
Explain Basics of OOP Language in java
Define a package.
What is appletviewer?
Explain java coding standards for constants?
How do you escape in java?
What is unmodifiable list in java?
What is http client in java?