Thursday, February 16, 2012

Episode 18. Ahh, the perils of Serialization and Deserialization in Java

We all have the need to serialize/deserialize objects (either through the "wire" or to file). In this podcast we go and analyze what exactly happens when we create an ObjectOutputStream and write to it, and more importantly what pitfalls are there to avoid (Out ot memory errors, stale object updates, Not Serializable Exceptions, and toenail fungus!). If you ever considered using ObjectOutput/InputStream, or are actively using in your current projects, take a listen! (Serialization performance comparison for Java, pick one!)

Questions, feedback or comments!

Subscribe to our podcast! (
ITunes link (
Java 7 Recipes book! (


  1. Hi Freddy,
    Thanks for your work so far.
    About your last podcast, I was wondering why you did not talk about the serialVersionUID parameter. I think, from the sources I regularly look at, that most people just don't get it and made false assumption on it.
    It would be interesting to talk about why it matters and when it is important to change it.

    Best regards,

    1. Thanks for the feedback!

      Definitively, there is even more to talk about serialization and deserialization and was just thinking of covering SerialVersionUID and compatibility in the next episode (and throw in ObjectOutputStream's distant cousing, the XMLEncoder/decoders)

      Thanks for listening!