This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Objects can be serialized to disk on a single machine or can be serialized across a network
such as the Internet, even in a case in which different operating systems are
involved. You can create an object on a Windows machine, serialize it to a Linux
machine, and load it back into the original Windows machine without error
In real world, May you give me one scenario about " create an object on a Windows machine, serialize it to a Linux
The second question:"or can be serialized across a network
such as the Internet,"
When a file is serialized to disk, It is understandable, But How "serialized across a network
such as the Internet"?
Serializing an object means converting it to a stream of bytes that you can later convert back to a Java object (deserializing). You can do anything with that stream of bytes you like: store it in a file on disk, or transmit them across a network, etc.
"Serialize across a network" means: serializing an object (converting it into a stream of bytes) and sending those bytes over a network to another computer (where the bytes can be deserialized back into an object).
Firefox and Google Chrome are not Java programs. So they certainly do not do serialization the Java way. If you'd want to know how these browsers store information about which tabs are open, you'd have to look in the source code. It could be something like serialization, but it could just as well be something entirely different. Just because some program saves settings, you can't say from the outside, without knowing how the code works, if it is using something like serialization or not.