由于<代码>可乘代码>仅为物体序列化的“标记”接口,没有界定任何方法。 http://docs.oracle.com/javase/1.4.2/docs/api/java/io/Serializable.html
The serialization interface has no methods or fields and serves only
to identify the semantics of being serializable.
http://java.sun.com/developer/techArticles/Programing/serialization/“rel=”nofollow。 SDN:
An object is marked serializable by implementing the
java.io.Serializable interface, which signifies to the underlying API
that the object can be flattened into bytes and subsequently inflated
in the future.