12
Gawain
Java Core, antas, aralin
Externalizable for apartments
Implement the Externalizable interface in the Apartment class.
6
Gawain
Java Core, antas, aralin
OutputToConsole
The OutputToConsole class must be serialized using the Externalizable interface.
Find and fix the bug.
12
Gawain
Java Core, antas, aralin
Externalizable Person
The Person class must be serialized using the Externalizable interface.
Correct the serialization bug.
Don't change the method signatures.
12
Gawain
Java Core, antas, aralin
Serializable Solution
Serialize the Solution class.
Think about which fields you don't need to serialize. Mark the unnecessary fields with the transient modifier.
The object must always contain up-to-date summary data.
The main method is not tested.
Write the verification code yourself in the main method:
1) create a fi
6
Gawain
Java Core, antas, aralin
Overriding serialization
Make it so that the runner thread continues to run after deserialization.
Don't change the runner object's keywords.
Hint:
The constructor is not called during deserialization. Only all the fields are initialized.