O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JavaBeans Serialization

Beans have properties, and those properties define what a bean is like—for instance, the color of a bean or the message it displays. Users customize beans to their own liking by setting bean properties. If a user customizes a bean so that it's red, he or she expects it to stay red. Beans maintain their properties, such as being red, through serialization.

Much of the time, you can leave the work of serialization to Java. However, there are times when you need to add serialization code manually. There usually isn't much that you need to add to your code in these cases, but you must know when the modifications are needed. You just need to make sure that your bean and all of the objects in your bean implement the Serializable ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required