Serialization and Deserialization Questions

Q- What is Serialization and Deserialization?

Q- What is the purpose of java Serialization?

Q- How to implement Serialization in Java?

Q- How to make Java class Serializable?

Q- What is the difference between Serializable and Externalizable in Java?

Q- How many methods Serializable has? If no method then what is the purpose of the Serializable interface?

Q- What is serialVersionUID? What would happen if you don't define this?

Q- While serializing you want some of the members not to serialize, how do you achieve it?

Q- Which methods are used during the Serialization and Deserialization process in Java?

Q- What are the compatible changes and incompatible changes in the Java Serialization Mechanism?

Q- Can we transfer a Serialized object via Network?

Q- Which kind of variable is not serialized during Java Serialization?

Q- How do we Serialize object, write a program to serialize and Deserialize object and persist it in a file?

Q- Write a program to explain how we can Serialize and Deserialize object by implementing the Externalizable interface?

Q- What will be the impact of not defining serialVersionUID in class?

Q- What if Serialization is not available, is any other alternative way to transfer object over the network?

Q- Why static member variables are not part of the Java Serialization process?

Q- What is the significance of Transient variables?

Q- What are the preferred alternatives to Java serialization?

Q- Implement Serializable with great caution?

Q- Write readObject methods defensively?

Q- For instance control, prefer enum types to readResolve?

Q- Consider Serialization proxies instead of serialized instances?
 
Q- Consider using a custom serialized form?

Comments

Popular posts from this blog

Java 8 Interview Questions

Java Collections Framework Questions