Java technical articles

Java articles for working developers

Clear explanations of the details that shape real programs.

Explore virtual threads, pattern matching, reflection, stream pipelines, native memory, and the version details that change how Java code behaves.

Latest articles

8 articles

Foreign Function and Memory APIAug 29, 20265 min read

Java Foreign Memory Safety: Bounds, Arenas, and Thread Access

Allocate and access native memory safely with Java MemorySegment, MemoryLayout, and Arena while avoiding lifetime, confinement, and pointer hazards.

  • foreign memory
  • MemorySegment
  • resource management