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

JavaMemory ManagementString
0 likes · 5 min read
Understanding the Underlying Implementation of Java String Immutability
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 PreparationJVMJava
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