As we know every java object has a state.By state we mean the values stored in the instance variables of that object.When we want to transfer that object,we need to convert the state of object so that we can send that object. Serialization is the process of converting state of an object into a byte stream. As the name suggests, deserialization is just the opposite. It will be used at the receiving end to reconstruct that object back from byte stream to object itself.