Grokking Java Interview Questions
0% completed
Serialization
A program converts the cart of Ana to bytes, stores them, and stops. The next day another run of the program reads the bytes. Which objects does it get, which fields keep their values, and which constructors run?
The answers come from a mechanism built into Java, and some of them are surprising. What follows explains how objects become bytes, what happens when a class changes in between, why bytes from outside are dangerous to read, and which formats to choose for new code.
What is serialization, and what does transient do?
Level: Junior
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%