Tagged articles
serializable
12 articles · Page 1 of 1
In Android, Bundles backed by memory‑efficient ArrayMap use binary search and shrinkable storage, making them far smaller and faster to transmit than HashMaps, whose fixed‑size growth and lack of shrinkage consume more memory; thus Parcelable Bundles are preferred for IPC, while Serializable remains suited only for persistent storage.
AndroidArrayMapBundle
0 likes · 5 min read

This article explains MySQL's four transaction isolation levels—READ UNCOMMITTED, READ COMMITTED, REPEATABLE READ, and SERIALIZABLE—by creating a simple table, inserting test data, and running step‑by‑step SQL scripts that illustrate the behavior of each level, including phenomena such as dirty reads, non‑repeatable reads, phantom reads, and locking.
InnoDBMySQLREAD UNCOMMITTED
0 likes · 11 min read

This article explains what serialization and deserialization are, why Java classes must implement the Serializable interface, the role of serialVersionUID in version compatibility, and demonstrates with code how transient and static fields behave during object serialization and deserialization.
JavaObjectIOSerialization
0 likes · 9 min read

The article explains how RC and snapshot isolation fail to prevent write skew and phantom reads, advocates serializable isolation, and examines three implementation techniques—strict serial execution, two‑phase locking, and optimistic concurrency—detailing their trade‑offs, stored‑procedure usage, partitioning, and practical constraints for achieving true serializable isolation.
Partitioningdatabasesserializable
0 likes · 11 min read

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

This article explains Java's Serializable interface, the concepts of serialization and deserialization, when to use them, how to implement them with code examples, and dives into common issues such as transient fields, static variables, and mismatched serialVersionUID values that can cause runtime errors.
JavaObjectOutputStreamSerialization
0 likes · 13 min read

This article explains Java serialization and deserialization, the role of the Serializable interface and serialVersionUID, demonstrates how to implement and test them with code examples, and discusses related features such as transient and static fields, providing practical insights for Java developers.
JavaSerializationdeserialization
0 likes · 11 min read

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

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

This article explains Java serialization, the role of the Serializable and Externalizable interfaces, the purpose of serialVersionUID, what happens when it changes, and best practices for defining it to ensure compatible object deserialization across versions.
ExternalizableJavaserialVersionUID
0 likes · 9 min read

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.
ExternalizableJavaSerialization
0 likes · 14 min read

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.
ExternalizableSerializationfundamentals
0 likes · 11 min read
