Why Java Beans have to be serializable?
问题 Is it necessary that a Java Bean implements the Serializable interface? 回答1: It's one of the "typical" features as described in the Javabeans specification. Here's an extract of chapter 2.1 What is a bean? Individual Java Beans will vary in the functionality they support, but the typical unifying features that distinguish a Java Bean are: Support for “introspection” so that a builder tool can analyze how a bean works Support for “customization” so that when using an application builder a user