Topic Hub · 64 Articles
Java
All articles and deep dives filed under Java. ← All Topic Hubs · All Posts
2026
4 ArticlesOct 20
The Hidden Cost of Java Virtual Threads: Deep Stacks, GC Pressure & CPU Cache Locality
Mar 31
Thread-Safe Native Memory in Java: VarHandle Access Modes Explained with JCStress
Mar 10
Managing Native Memory in Java (FFM API): Arenas, Malloc & Custom Memory Pools
Jan 08
Pointer Arithmetic in Modern Java with Project Panama (MemorySegment & MemoryLayout)
2025
8 ArticlesDec 01
Project Panama Tutorial (Part 1): Calling Native C Functions from Java with the FFM API
Jul 01
Mapping Native C Structs to Java Records with Project Panama (FFM API)
Apr 24
Working with MemorySegment in Java 22+ (Project Panama FFM API)
Apr 18
Java Try, Catch, Finally & Throw Explained with Practical Code Examples
Mar 31
Async I/O with Java & Project Panama: Unlocking Linux io_uring for Virtual Threads
Mar 07
Developing Linux-Specific Java Applications (io_uring & Panama) on macOS
Feb 14
Jakarta JSON Processing (JSON-P) Guide: Parse, Create, Patch & Merge JSON in Java
Feb 07
Critical Foreign Methods in Java Project Panama (Linker.Option.critical)
2024
15 ArticlesDec 28
2024 Java Year in Review: Conferences, Project Loom Book & Open-Source Milestones
Dec 15
Java Optional Guide: Creating, Chaining, map(), flatMap() & Best Practices
Dec 13
Java If-Else and Switch Expressions: Modern Pattern Matching & Syntax Guide
Dec 12
Exception Handling in Java: Checked vs. Unchecked Exceptions & Best Practices
Dec 12
Loops in Java Explained: For, Enhanced For-Each, While & Do-While Examples
Dec 11
Java Enums Explained: Fields, Constructors, Methods & Code Examples
Nov 18
Optimizing Project Panama (FFM API) Native Memory & Downcall Performance in Java
Nov 03
Java Arena Types Explained: Confined, Shared, Auto & Global (Project Panama FFM API)
Oct 01
How to Call a C Library Function from Java with Project Panama (FFM API)
Sep 21
How to Do an Upcall from C to Java Using Project Panama (FFM API)
Jul 30
How to Enable Java Virtual Threads in Spring Boot
Mar 27
First-Time-Right Software Engineering: Shipping Faster with Fewer Bugs
Feb 14
How to Read a File from src/main/resources in Java (InputStream & ClassLoader)
Feb 12
How to Create a Thread with Runnable in Java (Class & Lambda Examples)
Jan 25
How to Extend the Thread Class in Java (With Code Examples)
2023
24 ArticlesOct 28
JUnit 5 & JUnit 4 Lifecycle Annotations Explained (@BeforeAll, @BeforeEach, @AfterEach)
Oct 25
How to Unit Test Jakarta Bean Validation Annotations in Java (@NotNull, @Size)
Oct 11
Spring Boot REST API Request Validation with @Valid and Jakarta Bean Validation
Sep 30
How to Make Sync & Async HTTP Requests in Java with HttpClient
Sep 07
Verify method calls with Mockito
Sep 06
How to Generate an HTML Test Report with JUnit 5 and Maven Surefire
Aug 31
Given When Then structure with JUnit tests
Jul 27
Enum with properties using Java
Jul 27
How to Create a Unit Test with Mocks in Java (JUnit 5 & Mockito)
Jul 14
How to Create a Unit Test in Java with JUnit 5
Jun 09
Using ExecutorService, Future & invokeAll with Java Virtual Threads (JDK 21+)
May 31
Pattern Matching for Switch in Java 21+: Guarded Patterns, Nulls & Sealed Types
May 31
How to Configure IntelliJ IDEA to Build and Run Java Projects with Maven
Apr 27
Using @PathParam in Jakarta RESTful Web Services (JAX-RS) with Examples
Apr 24
How to Configure the Java Virtual Thread Scheduler (Parallelism & Pool Size)
Apr 13
Jakarta EE REST API Tutorial: Handling GET, POST, PUT, and DELETE Requests
Apr 13
Java ThreadGroup Explained: Grouping, Interrupting & Managing Threads
Apr 10
Bootstrap a Jakarta EE REST API in Pure Java SE (No Application Server)
Mar 31
JUnit 5 Parameterized Tests with @CsvSource and @CsvFileSource
Mar 31
Global Exception Handling in Spring Boot with @ControllerAdvice & @ExceptionHandler
Feb 23
Java Virtual Threads Explained: Architecture, Creation & Performance (JDK 21–26)
Feb 21
How to Read a File in Java: Files.readString(), BufferedReader & Streams
Feb 20
How to Remove All Null Values from a List in Java (removeIf, Streams & removeAll)
Feb 18
How to Split or Partition a List into Batches in Java
2022
9 ArticlesDec 21
SSOT, DRY, and Single Responsibility Principle (SRP) Explained in Java
Jun 28
Structured Concurrency in Java: StructuredTaskScope, ShutdownOnFailure, ShutdownOnSuccess & Deadlines
May 14
How to Create Custom Annotations in Java and Read Them with Reflection
May 13
Building a High-Throughput Web Crawler in Java with Virtual Threads
Apr 26
Java Stream Collectors.groupingBy() Guide: Count, Sum, Filter & Multi-Field Grouping
Apr 25
How to Implement the Singleton Design Pattern in Java (Thread-Safe & Enum)
Apr 16
Pattern Matching for instanceof in Java (With Code Examples)
Mar 28
Catching Multiple Exceptions in Java: try-catch Rules & Examples
Mar 10
How to Join or Concatenate Two Lists in Java Using Streams
2021
4 ArticlesDec 21
Context-Specific Deserialization Filters in Java 17 (JEP 415)
Nov 28
Building a Custom FUSE Filesystem in Pure Java with Project Panama
Oct 01
Java Sealed Classes and Interfaces Explained (permits, final, non-sealed)
Sep 14
Java Records Tutorial: Compact Constructors, Immutability & Custom Methods