Tag

ObjectInputStream

0 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
Feb 25, 2021 · Backend Development

Understanding serialVersionUID and Java Serialization Mechanism

This article explains how Java's serialization mechanism uses serialVersionUID to ensure class version compatibility, demonstrates default and explicit UID generation, shows code examples for serialization and deserialization, and explores various scenarios including field changes, static variables, inheritance, and the transient keyword.

JavaObjectInputStreamObjectOutputStream
0 likes · 13 min read
Understanding serialVersionUID and Java Serialization Mechanism
macrozheng
macrozheng
Mar 19, 2020 · Backend Development

Unlocking Java Serialization: Theory, Practice, and Common Pitfalls

Explore Java's built‑in serialization mechanism from its origins in JDK 1.1, learn how to implement Serializable and Externalizable, see practical code examples, understand the impact of static and transient fields, and master serialVersionUID to avoid deserialization errors.

ExternalizableJavaObjectInputStream
0 likes · 15 min read
Unlocking Java Serialization: Theory, Practice, and Common Pitfalls