The process of serialization is the process of saving the information of the object in the memory to a file or other storage medium. Normally, what serialization exports is the object information and all the values that make up the object variables in the current memory. Two machines connected through the network cannot share memory information. After converting the object information into a data stream through serialization, it can be transmitted through the network. In Java, the serialization interface is only used to mark whether an object accepts serialization. The serialization process has been completed by Java, so serialization can be achieved by implementing the serialization interface.
Serialization is to save data according to its own rules so that people can exchange the data with each other. Network transmission does not require serialized objects. For example, if the client uses Java, but the server uses PHP, serialization is meaningless because PHP cannot parse it at all. Another situation is that your client and server are both Java, but the Bean package names are different and they cannot be resolved. The meaning of serialization is to be able to cross platforms. Personal humble opinion.
The process of serialization is the process of saving the information of the object in the memory to a file or other storage medium. Normally, what serialization exports is the object information and all the values that make up the object variables in the current memory.
Two machines connected through the network cannot share memory information. After converting the object information into a data stream through serialization, it can be transmitted through the network.
In Java, the serialization interface is only used to mark whether an object accepts serialization. The serialization process has been completed by Java, so serialization can be achieved by implementing the serialization interface.
Serialization is to save data according to its own rules so that people can exchange the data with each other.
Network transmission does not require serialized objects. For example, if the client uses Java, but the server uses PHP, serialization is meaningless because PHP cannot parse it at all. Another situation is that your client and server are both Java, but the Bean package names are different and they cannot be resolved. The meaning of serialization is to be able to cross platforms.
Personal humble opinion.