Yaakov Chaikin wrote:
Here is the line from the spec:
A Serializable class must do the following:
.....
Have access to the no-arg constructor of its first non-serializable superclass
....
What does this mean and why do you need this requirement? But it does
It means that if you have an inheritance hierarchy and any class in that
hierarchy implements serializable, that class's parent must provide a
no-arg constructor. That's necessary so that the serializable class can be
instantiated by the deserialization process.
seem to say that you do NOT need your class declared with "implements
Serializable" to have a no-arg constructor, correct?
Correct. Neither does the class need to declare 'implements Serializable'
if a parent class already does so.
L.
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]