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
Is null function in java?
Which is better list or arraylist in java?
What are daemon Threads in java?
Why Java doesn’t support multiple inheritance?
What do you mean by garbage collection used in java?
Is static variable stored in heap?
What is a stack class in java ?
Define locale.
How will you serialize a singleton class without violating singleton pattern?
What restrictions are placed on method overloading in java programming?
What is a variable simple definition?
what is session in java?
What is difference between fail-fast and fail-safe?
What is string subsequence method?
What is an immutable class?