Lisa Notes
Lisa Notes
Mar 17, 2026 · Fundamentals

Java Basics: Understanding Primitive Data Types from Scratch

This article explains Java's primitive data types—including integer, floating‑point, character, and boolean types—covers their memory sizes, value ranges, literal syntax, automatic and explicit type conversions, and provides concrete code examples and tables for reference.

Javabooleanchar
0 likes · 16 min read
Java Basics: Understanding Primitive Data Types from Scratch
Programmer DD
Programmer DD
Jul 22, 2020 · Fundamentals

Why Java’s char Can’t Represent All Unicode Characters – Understanding UTF‑16 and Code Points

This article explains how Java’s char type stores Unicode code units in UTF‑16, why its range of \u0000 to \uffff limits direct representation of newer Unicode characters, and how methods like String.length, getBytes, and code‑point APIs help handle multi‑byte characters such as emojis and rare Chinese glyphs.

Code PointsUTF-16Unicode
0 likes · 10 min read
Why Java’s char Can’t Represent All Unicode Characters – Understanding UTF‑16 and Code Points
ITPUB
ITPUB
Apr 6, 2016 · Databases

Why Oracle CHAR Queries Behave Differently: Hidden Space Padding Explained

This article examines Oracle CHAR column behavior in 11g, demonstrating how automatic space padding affects constant, function, and bind‑variable comparisons, showing why queries may unexpectedly return no rows and offering practical tests and conclusions for developers handling CHAR versus VARCHAR2 data.

VARCHAR2charpadding
0 likes · 12 min read
Why Oracle CHAR Queries Behave Differently: Hidden Space Padding Explained
Java High-Performance Architecture
Java High-Performance Architecture
Jul 3, 2015 · Databases

When to Use CHAR vs VARCHAR in MySQL? Understanding Length, Storage, and Performance

CHAR stores fixed‑length strings padded with spaces, while VARCHAR stores variable‑length strings with a length byte, leading to different maximum sizes—255 characters for CHAR and up to 65,535 bytes for VARCHAR (about 21,589 UTF‑8 characters)—and distinct use cases such as short fixed fields versus space‑saving flexible fields.

MySQLStoragechar
0 likes · 2 min read
When to Use CHAR vs VARCHAR in MySQL? Understanding Length, Storage, and Performance