Tasks about serialization and deserialization

Available
11
Task
Java Core,  level 10,  lesson 7
unavailable
Externalizable for apartments
Implement the Externalizable interface in the Apartment class.
11
Task
Java Core,  level 10,  lesson 7
unavailable
OutputToConsole
The OutputToConsole class must be serialized using the Externalizable interface. Find and fix the bug.
11
Task
Java Core,  level 10,  lesson 7
unavailable
Externalizable Person
The Person class must be serialized using the Externalizable interface. Correct the serialization bug. Don't change the method signatures.
11
Task
Java Core,  level 10,  lesson 7
unavailable
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
11
Task
Java Core,  level 10,  lesson 7
unavailable
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.
Comments(4)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
JeRiF94Level 22 , Baku
12 October, 15:11
DONE!
季军Level 29 , Shanghai
5 August, 09:35
In "Externalizable Person": The readline() method is deprecated, so use read/writeUTF() instead
CarlosLevel 22 , Leon
26 September, 22:25
or try <variableName> = (<variableType>) in.readObject(); worked for me
Ivan DukaLevel 22 , Winnipeg
25 April, 19:27
"Externalizable Person" hint: do not read/write any lines, that messes up the whole saving/loading process. Only objects and ints.