When the data was written to disk, certain information was lost, such as the type of each value. For example, if the value
"10" is read from a file, there’s no way to tell whether it came from an
String or a
double. We have only data, not type information, on a disk.
we want to read an object from or write an object to a file or over a network connection. Java provides a concept called serialization for this purposes. Continue reading