How does Java's serialization work and when it should be used instead of some other persistence technique?

前端 未结 9 1035
失恋的感觉
失恋的感觉 2020-11-30 20:54

I\'ve been lately trying to learn more and generally test Java\'s serialization for both work and personal projects and I must say that the more I know about it, the less I

9条回答
  •  猫巷女王i
    2020-11-30 21:23

    The main advantage of serialization is that it is extremely easy to use, relatively fast, and preserves actual Java object meshes.

    But you have to realize that it's not really meant to be used for storing data, but mainly as a way for different JVM instances to communicate over a network using the RMI protocol.

提交回复
热议问题