114 Technical Articles · Java, Concurrency, Project Panama & Performance
All Posts
Browse all deep dives, JMH benchmark studies, and guides on modern Java (JDK 21–26), Virtual Threads, Structured Concurrency, Project Panama (FFM API), and Linux io_uring. You can also browse by topic categories.
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
9 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)
Jun 07
Benchmarking and Profiling Java Code with JMH and async-profiler
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
21 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)
Aug 08
Build a REST API with Java, Jakarta EE and Helidon
Jul 30
How to Enable Java Virtual Threads in Spring Boot
Jul 30
Mockito thenReturn vs. thenAnswer: Stubbing Method Return Values in Java
Jul 30
Mockito Inline Mock Maker: Mocking Final Classes, Static Methods & Constructors
Jul 29
Java Microbenchmark Harness (JMH) Tutorial: Write Accurate JVM Benchmarks
Jul 08
Java Virtual Threads vs. Platform Threads: Benchmarking High-Concurrency API Calls
Jun 17
Java Virtual Threads vs. Platform Threads: Performance When Blocking Calls Return Fast
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
42 ArticlesDec 31
Helidon Quickstart Guide: Creating a Java Microservice in IntelliJ IDEA
Dec 11
Java Scoped Values Tutorial: Faster, Safer Alternative to ThreadLocal
Oct 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
Aug 31
How to Repeat a Test Multiple Times in JUnit 5 with @RepeatedTest
Aug 28
Conditional Test Execution in JUnit 5 with Annotations (@EnabledOnOs, @EnabledIf)
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 15
4 Ways to Create Virtual Threads in Java 21+
Jun 14
How to Detect Pinned Virtual Threads in Java (-Djdk.tracePinnedThreads & JFR)
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
May 30
Mockito Custom Argument Matchers: Returning Dynamic Values Based on Input Arguments
Apr 28
How to Use Mockito Spy (@Spy & Mockito.spy) for Partial Mocking in Java
Apr 27
Using @PathParam in Jakarta RESTful Web Services (JAX-RS) with Examples
Apr 27
3 Ways to Name Virtual Threads in Java for Better Debugging
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)
Apr 08
How to Use Mockito with JUnit 5 (@ExtendWith(MockitoExtension.class) Tutorial)
Apr 08
How to Set Custom Display Names in JUnit 5 (@DisplayName & @DisplayNameGeneration)
Mar 31
JUnit 5 Parameterized Tests with @CsvSource and @CsvFileSource
Mar 31
Global Exception Handling in Spring Boot with @ControllerAdvice & @ExceptionHandler
Mar 31
Java ReentrantLock Tutorial: Thread-Safe Locking & Virtual Thread Pinning Prevention
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
Jan 30
How to Mock Constructor Calls in Mockito 5 with mockConstruction()
Jan 20
Upgrading to Mockito 5: JDK 11+, Inline Mock Maker by Default & Breaking Changes
Jan 20
How to Inject Mocks in Mockito Using @InjectMocks and @Mock
Jan 19
How to Mock a Java Record Class with Mockito
Jan 15
How to Pause Execution in Java with Thread.sleep() and TimeUnit
Jan 15
How to Interrupt a Thread in Java: interrupt(), isInterrupted() & InterruptedException
2022
33 ArticlesDec 21
SSOT, DRY, and Single Responsibility Principle (SRP) Explained in Java
Nov 29
How to Disable or Ignore Tests in JUnit 5 (@Disabled) and JUnit 4 (@Ignore)
Nov 24
How to Use Semaphore in Java to Limit Concurrent Access (With Examples)
Nov 08
Java ExecutorService Tutorial: Thread Pools, Callable, Future & Virtual Threads
Nov 04
JUnit 5 Conditional Test Execution: OS, JRE, System Properties & Env Vars
Nov 03
How to Set Test Timeouts in JUnit 5 (@Timeout, assertTimeout) and JUnit 4
Nov 01
How to Mock an Enum and Its Methods in Java with Mockito
Nov 01
How to Implement a Custom StructuredTaskScope in Java
Sep 19
Running Multiple Threads in Java and Getting the First Result (invokeAny vs. ShutdownOnSuccess)
Sep 12
Java Virtual Threads Production Pitfalls: Thread Pinning, ThreadLocals & Pooling Traps
Sep 08
How Many Java Virtual Threads Can Run in Parallel?
Sep 05
12 Steps to Writing Maintainable Java Unit Tests
Aug 22
JUnit 5 Advanced Assertions: assertAll, assertThrows, assertTimeout & More
Aug 22
How to Assert & Verify Exceptions in JUnit 5 with assertThrows()
Aug 18
How to Run JUnit 5 Tests in Parallel to Speed Up Your Build
Aug 16
How to Control Test Execution Order in JUnit 5 (@TestMethodOrder & @Order)
Jul 27
How to Use Mockito ArgumentCaptor in Java Unit Tests
Jul 22
Complete Guide to Creating Mocks in Java with Mockito
Jul 19
How to Mock and Stub Void Methods in Mockito (doNothing, doThrow, doAnswer)
Jun 28
Custom Argument Matching in Mockito with argThat() and Java Lambdas
Jun 28
Structured Concurrency in Java: StructuredTaskScope, ShutdownOnFailure, ShutdownOnSuccess & Deadlines
Jun 07
How to Configure Mockito Strictness Levels (LENIENT, WARN, STRICT_STUBS)
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
Mar 08
How to Mock Final Classes and Final Methods in Java with Mockito
Feb 21
How to Mock Static Methods in Java with Mockito (Mockito.mockStatic)
Feb 20
How to Mock Constructors in Mockito (Mockito.mockConstruction Guide)
Jan 24
JUnit 5 Dynamic Tests Tutorial: Generating Runtime Tests with @TestFactory
2021
5 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
Aug 16
JUnit 5 Parameterized Tests Complete Guide: @ValueSource, @EnumSource & @MethodSource