SaveMyCert
Log in
2 of 2 free questions left today·for 5 a day
Performing Input and Output Operations Using the Java I/O API

Java Serialization and Deserialization: Serializable, transient and serialVersionUID (1Z0-831)

20 min read1Z0-831 · Performing Input and Output Operations Using the Java I/O APIUpdated

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.

Sign up free to mark lessons complete, bookmark topics and track your exam readiness.

Spotted a mistake in this lesson?