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

InnoDBREAD UNCOMMITTEDRead Committed
0 likes · 11 min read
Demonstrating MySQL Transaction Isolation Levels with Practical Examples
JavaEdge
JavaEdge
Aug 28, 2022 · Databases

Why Serializability Matters: Single‑Threaded Transactions and Stored Procedures

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.

PartitioningSingle‑threadedStored Procedures
0 likes · 11 min read
Why Serializability Matters: Single‑Threaded Transactions and Stored Procedures
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
Programmer DD
Programmer DD
Oct 22, 2020 · Backend Development

Master Java Serialization: Why serialVersionUID Matters and Common Pitfalls

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.

JavaObjectOutputStreamserialVersionUID
0 likes · 13 min read
Master Java Serialization: Why serialVersionUID Matters and Common Pitfalls
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.

DeserializationJavaserialVersionUID
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
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