12
Task
Java Core,
level 10,
lesson 7
Locked
Externalizable for apartments
Implement the Externalizable interface in the Apartment class.
6
Task
Java Core,
level 10,
lesson 7
Locked
OutputToConsole
The OutputToConsole class must be serialized using the Externalizable interface.
Find and fix the bug.
12
Task
Java Core,
level 10,
lesson 7
Locked
Externalizable Person
The Person class must be serialized using the Externalizable interface.
Correct the serialization bug.
Don't change the method signatures.
12
Task
Java Core,
level 10,
lesson 7
Locked
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
Task
Java Core,
level 10,
lesson 7
Locked
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.
GO TO FULL VERSION