So, in Table 11.2 at pag. 596 there is a list of the methods for serialization and deserialization. The table lists the return type, the method name, the method parameters and the description.
The two lines which correspond to the methods writeObject() and readObject() are the following:
Return Type | Method | | Parameters | Description |
---|
void | writeObject() | ObjectInputStream | Serializes optionally using PutField |
void | readObject() | ObjectOutputStream | Deserializes optionally using GetField |
I think in the third column (Parameters) the two should be inverted, meaning writeObject() takes an ObjectOutputStream as parameter, while readObject() takes an ObjectInputStream.