Tag

Serializable

0 views collected around this technical thread.

Java Tech Enthusiast
Java Tech Enthusiast
Sep 6, 2024 · Mobile Development

Bundle vs HashMap in Android: Memory Efficiency and Performance

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.

AndroidArrayMapHashMap
0 likes · 5 min read
Bundle vs HashMap in Android: Memory Efficiency and Performance
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 21, 2023 · Databases

Demonstrating MySQL Transaction Isolation Levels with Practical Examples

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 Committed
0 likes · 11 min read
Demonstrating MySQL Transaction Isolation Levels with Practical Examples
Architecture Digest
Architecture Digest
Oct 19, 2023 · Fundamentals

Understanding Java Serialization, serialVersionUID, and Their Practical Implications

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.

JavaObjectIOSerializable
0 likes · 9 min read
Understanding Java Serialization, serialVersionUID, and Their Practical Implications
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
Selected Java Interview Questions
Selected Java Interview Questions
May 13, 2020 · Fundamentals

Understanding Java Serialization and serialVersionUID: Concepts, Usage, and Common Pitfalls

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.

JavaSerializableSerialization
0 likes · 11 min read
Understanding Java Serialization and serialVersionUID: Concepts, Usage, and Common Pitfalls
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
Selected Java Interview Questions
Selected Java Interview Questions
Mar 1, 2020 · Backend Development

Understanding Java Serialization: Concepts, Implementation, and Common Pitfalls

This article explains Java serialization and deserialization concepts, when to use them, how to implement the Serializable interface with example code, and discusses the effects of transient, static fields, and serialVersionUID on object persistence and compatibility.

SerializableSerializationjava-io
0 likes · 11 min read
Understanding Java Serialization: Concepts, Implementation, 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