Java Serialization and Deserialization: Serializable, transient and serialVersionUID (1Z0-831)
Java serialization converts an object, and every object it references, into a stream of bytes with ObjectOutputStream, and deserialization rebuilds an equivalent object graph from those bytes with ObjectInputStream. Oracle 1Z0-831 objective 9.2 asks you to serialize and de-serialize Java objects, which in practice means predicting exactly what a round trip preserves, what it resets and what it throws. This lesson covers the Serializable requirement, the object-stream API and its exceptions, transient and static fields, which constructors run on reading, serialVersionUID and class evolution, the writeObject/readObject and readResolve/writeReplace hooks, how records, enums and Externalizable classes differ, shared references in object graphs, and deserialization filters. Byte and character streams belong to objective 9.1, and Path and Files to 9.3.
You’ve read your 2 free 1Z0-831 lessons
Sign up free to read 48 more lessons — your progress is saved.
Source
This lesson covers the "Performing Input and Output Operations Using the Java I/O API" domain of the official 1Z0-831 exam guide. Vendors revise their guides — check the source for the current version.
- Java SE 25 Developer Professional (1Z0-831) exam page and topics — Oracle University
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.