Understanding JVM String Constant Pool and String Interning
String Fundamentals and Internal Structure
The String class in Java is declared as final, meaning it cannot be extended. It implements both Serializable and Comparable interfaces, enabling it to support serialization and comparison operations. Prior to Java 8, strings were internally represented using a char[]. Starting from Java 9, this was ch ...
Posted on Thu, 03 Sep 2026 16:45:50 +0000 by subhuman
Finding the Longest Substring Without Repeating Characters
Problem Statement
Given a string, determine the length of the longest contiguous substring that does not contain any repeating characters.
Sliding Window Approach
The sliding window technique maintains a window defined by left and right pointers. As the right pointer expands the window, we track character frequencies. If a duplicate is found, ...
Posted on Sat, 29 Aug 2026 16:12:55 +0000 by fusionxn1
Constructing Lexicographically Minimal Strings with Minimized Maximum Prefix Borders
Given a string $s$, the goal is to find a permutation $t$ such that the maximum value of the border length $f(i)$ across all prefixes $i$ of $t$ is minimized. Among all permutations that achieve this minimum, $t$ must be the lexicographically smallest.
Character Analysis and Minimum Border Criteria
For any string containing at least two distinc ...
Posted on Tue, 18 Aug 2026 16:21:49 +0000 by shoz
Redis Data Types: An In-depth Guide to String and Hash Structures
Before diving into Redis's five fundamental data structures, it's essential to understand some core concepts that will provide a solid foundation for the following content. These include Redis's global commands, internal data structure encoding mechanisms, and its single-threaded command processing approach.
Redis Global Commands
Keys Command
T ...
Posted on Sat, 15 Aug 2026 16:37:50 +0000 by psychomossel
Python Built-in Data Types Explained
Python supports a variety of built-in data types that allow developers to store and manipulate different kinds of information. These include numeric types, text sequences, boolean values, sequecnes, sets, mappings, and binary data.
Numeric Types
Python's numeric category primarily consists of integers (int), floating-point numbers (float), and ...
Posted on Sat, 08 Aug 2026 16:12:54 +0000 by JNorman
ES6 String Enhancements: Methods, Template Literals, and Tagged Templates
String Methods in ES6
JavaScript strings are based on UTF-16 encoding, where each code unit occupies 2 bytes. Characters within the Basic Multilingual Plane (U+0000 to U+FFFF) fit in one code unit, while supplementary characters require two.
charAt and charCodeAt
charCodeAt returns the UTF-16 code unit at a given index, while charAt returns the ...
Posted on Wed, 05 Aug 2026 16:06:03 +0000 by britt15
Learning the String Type in Rust
What is String
Rust's core language has only one string type, which is the string slice str, usually seen as a borrowed &str.
The String type is provided by the standard library rather than encoded directly into the core language. It is a growable, mutable, UTF-8 encoded type.
Both str and String are UTF-8 encoded. If you need a non-UTF-8 ...
Posted on Sun, 26 Jul 2026 16:50:50 +0000 by lucerias
Understanding Java String Immutability
The immutability of the String class in Java is a foundational concept that impacts performance, security, and memory optimization. Understanding how and why this design decision was made can help developers better utilize strings in their applications.
1. How Immutability Is Implemented in String
The immutability of String is enforced through ...
Posted on Sun, 26 Jul 2026 16:24:20 +0000 by nomanoma
Java String Handling and Core Concepts
String Class in Java
The String class in Java represents sequences of characters and is used for text data manipulation.
String Creation and Operations
Strings can be created using literals or the new keyword:
String greeting = "Hello";
String message = new String("Welcome");
Common string operations include:
Length: int ...
Posted on Tue, 21 Jul 2026 16:53:01 +0000 by vumpler
Initializing Empty String Arrays in Java
Creating Empty String Arrays in Java
In Java programming, string arrays are commonly used to store collections of text values. There are several approaches to initialize an empty string array, where the array contains zero elements. Let's explore different methods to achieve this.
Method 1: Using Array Initialization Syntax
The simplest way to ...
Posted on Sun, 19 Jul 2026 16:24:08 +0000 by lukelee