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

前端 未结 9 1013
失恋的感觉
失恋的感觉 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条回答
  •  醉梦人生
    2020-11-30 21:12

    I bumped into this dilemma about a month ago (see the question I asked).

    The main lesson I learned from it is use Java serialization only when necessary and if there's no other option. Like Jon said, it has it's downfalls, while other serialization techniques are much easier, faster and more portable.

提交回复
热议问题