6
Tarefa
Java Core, nível 10, lição 4
How do you serialize?
Make it so that the Human class can be serialized.
6
Tarefa
Java Core, nível 10, lição 4
How do you serialize CodeGym?
Make it so that the CodeGym class can be serialized.
12
Tarefa
Java Core, nível 10, lição 4
How do you serialize Singleton?
Two deserialized objects (singleton1 and singleton2) have different memory references, but they should be the same.
In the Singleton class, add a method so that after deserialization the object references are the same (Google it).
The main method is not tested.
6
Tarefa
Java Core, nível 10, lição 4
How do you serialize static fields?
Make it so that the ClassWithStatic class can be serialized.
6
Tarefa
Java Core, nível 10, lição 4
How do you serialize something of your own?
Make it so that the Object class can be serialized.