Serializable Java serialization 1. Implementing the API that serializable returns to the released API is difficult to change, and the better 咚咚 of the package-private and private will not be guaranteed 2, serializable will generate a sequence for each class. No., the generation is based on the class name, the interface name, the public and protected method, so as long as you accidentally change a Publish API, and there is no one of the long-type SERIALSONUID, even if it is just adding one Getxx will let you read the original serialization to the file in the file. You can't read it (don't know why you want to take the way to go in?) Related to Extralinguistic Mechanism, so when you implement serializable, you should pay attention to the constant states maintained in the constructor. After adding a new version of the test burden 5, 1.4, JavaBeans's persistence is based on XML Mechanism, no longer need serializable6, when designing the class used to be inherited, try not to implement serializable, and do not inherit the interfable. However, if the parent class does not implement the Serializable interface, the subclass is difficult to implement, especially when the parent class does not have a parameter-free constructor that can be accessed. So, once you decide not to implement the Serializable interface and remember to provide a non-parameter-free constructor 7, the internal class is still good, unless it is static, (even if the internal class is not suitable To dry this type of live) 8, use a custom serialization method to see this example of saving a two-way linked list: public class stringlist implements serializable {private int size = 0; private entry head = null; private static class entry Implements serializable {string data; entry previous;} // remibility ommitted} This causes each element of the linked list and the relationship between the elements (the connection between the two-way linked list) is saved, and the better way is to provide a custom serialization follows: // String List with a resonable custom serialized formclass StringList implements serializable {private transient int size = 0; // transient private transient Entry head = null; // transient // no longer serializable!!! Private static class entry {string data; entry prep