What is serialization?

In computer programming, the serialization is the process of receiving the data structure stored in local memory and its conversion into a content of bytes, which can be transmitted via the network or stored to disk to re -assemble and use another program. On another computer via a network. This mechanism also allows the distribution of data objects in a large network system. The output current type does not matter and it can be a file or network socket.

As soon as the data is serialized and sent to their final location, the process of the desserts begins. The program that reads the contents of the byte restores all the information and places it in the new instance of the original object, which is to create an exact copy. It is important to understand that only the data holding the object is bathed; The object and its methods and other implementation data are not. This means that a program that desireizes data must be able to create an instance of tthe boom that was originally seriousized.

serialization of the data structure structure can be used for different purposes. Information about the object can be stored on the physical medium, so the exact condition of each object can be restored to the extent that it was when the program was stopped. It can be used to send messages to another computer that causes a remote procedure to start. Serialization can even be used to effectively compare changes in real -time applications.

Before using the serialization of the object, it is important to understand some of the limits it stores. The most important thing is that through the process of converting the object to a byte current, a field that is declared private will be announced. During the transmission of the current can be captured so that it can be captured to make it possible, so that it is possible, so that it is possible, in order to be possible, that it is possible, given that it is for influence, can be captured. risk.

Another factor that isIt is necessary to keep in mind that serialization will generally only work with objects that are exactly the same as a serialized object. If new fields or methods are added to the object, the signature of the object will change. This will mean that the stored object is an exception and the data will become unilateral until the instance of the original unmodified object attempts to recover.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?