Hi, desai, thanks for your reply
I found the following quotes in the API
All subtypes of a serializable class are themselves serializable. The serialization interface has no methods or fields and serves only to identify the semantics of being serializable.
To allow subtypes of non-serializable classes to be serialized, the subtype may assume responsibility for saving and restoring the state of the supertype's public, protected, and (if accessible) package fields. The subtype may assume this responsibility only if the class it extends has an accessible no-arg constructor to initialize the class's state. It is an error to declare a class Serializable in this case. The error will be detected at runtime.
here is my new doubt:
since making a class Serializable need no extra method to implement and a class is Serializable if its superclass is Serializable, why
java designer not implicitly make class
Object Serializable so all the classes become Serializable and need not to worry about the restrictioin?
Regards
James Du