News

If you are fortunate enough to be using JDK 7, the newly available Objects class is the obvious (at least to me) choice for implementing the “common” Java object methods such as equals (Object ...
This tutorial explains how a Java HashMap works internally and explores the challenges of implementing it, including buckets, collisions and hash codes.
When a method needs to return more than one piece of information, the single-value returns of Java methods can seem limiting.
Java records example To demonstrate how a Java 17 record can help you create cleaner and simpler code, let's first start off with a standard, simple Java class that can identify a person's location, ...