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 ...

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.