Tag

Externalizable

0 views collected around this technical thread.

macrozheng
macrozheng
Apr 28, 2025 · Backend Development

Master Java Serialization: Common Pitfalls and Best Practices

This article explains the fundamentals of Java object serialization, compares legacy and modern formats, outlines how to choose the right method, and details common issues such as static fields, transient modifiers, serialVersionUID mismatches, inheritance quirks, and custom serialization techniques with clear code examples.

ExternalizableJavaMicroservices
0 likes · 15 min read
Master Java Serialization: Common Pitfalls and Best Practices
macrozheng
macrozheng
Mar 17, 2025 · Backend Development

Master Java Serialization: Common Pitfalls and Best Practices

This article explains the fundamentals of Java serialization and deserialization, compares various serialization formats, demonstrates code examples, highlights common issues such as static, transient fields and serialVersionUID mismatches, and shows how to implement custom serialization with the Externalizable interface.

ExternalizableJavaMicroservices
0 likes · 16 min read
Master Java Serialization: Common Pitfalls and Best Practices
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 11, 2021 · Fundamentals

Understanding Java's transient Keyword: Definition, Conventions, Usage Scenarios, and Serialization Behavior

This article explains the transient keyword in Java, covering its definition, the rules that govern its use, practical examples with Gson serialization, the impact on object fields during serialization, and how Externalizable can override its behavior, providing a comprehensive guide for developers.

ExternalizableGsonJava
0 likes · 10 min read
Understanding Java's transient Keyword: Definition, Conventions, Usage Scenarios, and Serialization Behavior
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
Java Captain
Java Captain
Jan 15, 2018 · Fundamentals

Understanding Java's transient Keyword: Usage, Summary, and Edge Cases

This article explains the purpose and usage of Java's transient keyword, demonstrates how it prevents sensitive fields from being serialized, summarizes key rules, and explores edge cases including static fields and the Externalizable interface where transient fields can still be manually serialized.

ExternalizableJavaSerializable
0 likes · 11 min read
Understanding Java's transient Keyword: Usage, Summary, and Edge Cases