Tagged articles
4 articles
Page 1 of 1
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.

ObjectInputStreamObjectOutputStreamjava
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.

ExternalizableObjectInputStreamObjectOutputStream
0 likes · 15 min read
Unlocking Java Serialization: Theory, Practice, and Common Pitfalls
Java Backend Technology
Java Backend Technology
Mar 10, 2020 · Backend Development

Unlock Java Serialization: Why Serializable Matters and How to Master It

This article dives deep into Java's serialization mechanism, explaining the theory behind the Serializable interface, demonstrating practical examples with code, exploring the impact of static and transient fields, comparing Serializable with Externalizable, and clarifying the role of serialVersionUID in version compatibility.

ExternalizableObjectInputStreamObjectOutputStream
0 likes · 14 min read
Unlock Java Serialization: Why Serializable Matters and How to Master It