Summary

In this chapter, you learned how to create your own serialization capabilities. You learned when you need to implement the Serializable interface. When that wasn't enough, you learned to add methods that are called automatically by the JVM when a bean is being stored or loaded. Finally, you learned how to make old versions of your bean compatible with new version by utilizing Java's serialVersionUID.

Get JavaBeans Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.