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

BackendDeserializationExternalizable
0 likes · 15 min read
Master Java Serialization: Common Pitfalls and Best Practices
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Sep 8, 2024 · Backend Development

Master Java Serialization & Deserialization: Techniques, Pitfalls, and Security

This article explains Java serialization and deserialization concepts, outlines common use cases such as distributed systems and caching, compares multiple implementation methods including Serializable, Externalizable, JSON, XML, and binary libraries, and provides practical code examples, security tips, and best‑practice guidelines.

DeserializationExternalizableJSON
0 likes · 24 min read
Master Java Serialization & Deserialization: Techniques, Pitfalls, and Security
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 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.

ExternalizableJavaObjectInputStream
0 likes · 14 min read
Unlock Java Serialization: Why Serializable Matters and How to Master It
Java Backend Technology
Java Backend Technology
Jun 29, 2019 · Backend Development

Mastering Java Serialization: From Basics to Advanced Pitfalls

This article explores Java's serialization mechanism in depth, covering its history, the Serializable and Externalizable interfaces, practical code examples, the impact of static and transient fields, serialVersionUID nuances, and common pitfalls to help developers write robust, version‑compatible Java code.

ExternalizableJavaserialVersionUID
0 likes · 14 min read
Mastering Java Serialization: From Basics to Advanced 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.

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