Serialization
What is Serialization?
Why do we need serialization ?
How to implement serialization in java ?
What is Serializable interface?
What is an Externalizable interface ?
What is the use of Externalizable interface in Java ?
Difference between serializable and Externalizable or When will you use Serializable or Externalizable interface? and why?
What is Deserialization? How to do it?
What is transient keyword ?
What will be value of transient variables after de-serialization ?
What are the conditions to meet to serialize an object in Java?
Which elements of a class are ignored during serialization ?
Can we serialize static variables ?
Can we serialize final variables ?
What one should take care of, while serializing the object?
What is serialVersionUID ?
Serialization and deserialization of singleton class.
How to avoid cloning, serialization in the singleton class ?
Can you give me a use case where you utilized serialization in your project code? Or Real time example .
Can we serialize objects with only private variables in Java ?
Is constructor of class called during DeSerialization process?
Is constructor of super class called during DeSerialization process of subclass (Important)?
Other than Serialization what are the different approach to make object Serializable?
To serialize an array or a collection all the members of it must be serializable. True /False?
While serializing you want some of the members not to serialize, how do you achieve it?
What will be the value of transient variable after de-serialization?
A If a class is serializable but its superclass in not, what will be the state of the instance variables inherited from super class after deserialization?
What happens if an object is serializable but it includes a reference to a non-serializable object?
What happens if the object to be serialized includes the references to other serializable objects?
Can you Customize Serialization process or can you override default Serialization process in Java?
What is the difference between writeObject() and defaultWriteObject() method in serialization ?
Suppose super class of a new class implement Serializable interface, how can you avoid new class to being serialized?
Last updated