Thread safe Java Singleton

When creating a thread safe Java Singleton there are three basic patterns. Double Checked Locking, Lazy Initialization and upfront initialization. Here we will talk about all three methods. Read More…

Java Interview Code Examples

Here are a series of coding interview questions that in my 30 years of experience working for most of the Investment Banks on Wall Street I have encountered. I recommend you try to answer the question first before looking at the Answer. If you can pass all of these you should sail through most coding interviews.
Read More…

MultiValueMap in Java

A Generic MultiValueMap where 1 Key can have many Values can be easily created here is how. Read More…

Java 21 Virtual Threads and Loom

Threads have been around since the earliest days of Java but now with Virtual Threads they are becoming more efficient. Read on to find out how. Read More…

Java Low Latency Tutorial

What do developers mean when they talk about Low Latency Algo development in Java? How do you demonstrate that an Algo you have coded is actually low latency and what exactly does this mean in practice.
Read More…

Warming up Byte Code in a JVM

This article is a further tutorial in our series of Low Latency java programming. Here we discuss the ideas of how we go from Code to the cpu, and how you can improve performance by being aware of ho we get there and how to warm up a JVM.
Read More…

Blocking Queue Implementations in Java

A blocking Queue is a structure that allows you to put and take items from a Queue blocking if empty or if queue is full. You could use the Java Api, but here I show you how it works under the covers. Read More…

Create A Statistics Distribution

Following on from the
Monte Carlo tutorial
and the
Low Latency LongAdder tutorial
I wrote a simple class that allows you to to take the results of a monte Carlo and then cut the results into statistic bins and then create a simple Graph in a spreadsheet based on the results. Read More…

Low Latency Java using CAS

When writing efficient Java code or Low Latency Java code it means you have to squeeze every microsecond out of the system you need to start looking at ways to improve performance across the system, CAS is one way of doing that but not the only way. Read More…

Java Threading

Java Threading Basics
This is a quick tour of the basics of Threading. I assume here you have a basic grasp of Java ( Imperative and Functional ) and Generics. Read More…

Java Functional Review

Java Functional Review
Here is a quick review of some of the basic functional Java concepts that are beyond the Basic Java 101. In this article it is assumed you have a reasonable grasp of Imperative Java programming and Generics.

Read More…

Java 9 New Features

This is a guide to the more important new features in Java 9 that you may find useful. Read More…

By clicking Dismiss you accept that you may get a cookie that is used to improve your user experience and for analytics.
All data is anonymised. Our privacy page is here =>
Privacy Policy
This message is required under GDPR (General Data Protection Rules ) and the ICO (Information Commissioners Office).