Tagged articles

string pool

13 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Apr 30, 2026 · Fundamentals

Do You Really Understand the Difference Between == and equals() in Java?

This article explains how == compares primitive values and object references, why Object.equals() defaults to ==, how classes like String and Integer override equals(), the impact of the string constant pool, integer caching, auto‑boxing, floating‑point pitfalls, and best practices for correctly comparing objects in Java.

==InterviewReference Types
0 likes · 16 min read
Do You Really Understand the Difference Between == and equals() in Java?
Java Captain
Java Captain
Mar 25, 2024 · Fundamentals

Understanding the Underlying Implementation of Java String Immutability

This article explains why Java's String class is immutable, detailing the benefits such as thread safety, cached hash codes, and string pooling, and describes the internal mechanisms—including a private final char array, creation of new objects on concatenation, and the intern method—that enforce this immutability.

ImmutabilityMemory Managementconcurrency
0 likes · 5 min read
Understanding the Underlying Implementation of Java String Immutability
macrozheng
macrozheng
Jul 3, 2023 · Fundamentals

Why Java Creates Only One String Object: Understanding Constant Folding

This article explains how Java's compiler optimizes string concatenation through constant folding, the rules that define compile‑time constants, and why only a single String object is created in many seemingly multiple‑object scenarios.

Compile-time ConstantJVMconstant folding
0 likes · 11 min read
Why Java Creates Only One String Object: Understanding Constant Folding
Java Captain
Java Captain
May 27, 2019 · Fundamentals

Java Runtime Memory Areas, Object Creation, and Common Interview Questions

This article explains Java's runtime memory regions, including the program counter, stacks, heap, method area, constant pool, and direct memory, and details the HotSpot object creation process, memory layout, access mechanisms, as well as String and wrapper class behaviors, providing essential knowledge for Java interview preparation.

Interview PreparationJVMMemory Management
0 likes · 19 min read
Java Runtime Memory Areas, Object Creation, and Common Interview Questions
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 29, 2018 · Mobile Development

How Sophix Optimizes Android Resource Patches for Minimal Size

This article explains how Alibaba's Sophix hot‑fix framework trims Android resource patches by analyzing and reconstructing the resources.arsc string pools, removing unused entries, and re‑indexing references, achieving dramatic size reductions while preserving runtime performance.

AndroidHotfixResource Optimization
0 likes · 14 min read
How Sophix Optimizes Android Resource Patches for Minimal Size