Core Java
-
Need driven software development using Mocks
Excellent paper on mocking framework by jmock author. This paper was written in 2004 that is 18 years ago but…
Read More » -
Adapter Design Pattern In Java
The Adapter design pattern is a structural design pattern that helps us to connect to the legacy or third-party code that exposes a similar…
Read More » -
Java: ChronicleMap Part 3, Fast Microservices
Standard Java Maps needs to be initialized upon startup. Learn how to leverage ChronicleMaps that is initializable from a file…
Read More » -
Java: ChronicleMap Part 2, Super RAM Maps
The standard Java Maps, such as the ubiquitous HashMap, are ultimately limited by the available RAM. Read this article and…
Read More » -
Java: ChronicleMap Part 1, Go Off-Heap
Filling up a HashMap with millions of objects will quickly lead to problems such as inefficient memory usage, low performance…
Read More » -
JEP 358: Helpful NullPointerExceptions
In the post “Better Default NullPointerException Messages Coming to Java?“, I summarized background details related to a draft JEP (at…
Read More » -
Annotation Handling and JPMS
TLDR; Instead of annotation.getClass().getMethod("value") call annotation.annotationType().getMethod("value"). All Java developers have heard about annotations. Annotations are with us since Java 1.5…
Read More » -
JDBC – Emulating a sequence
Probably each of us encountered this problem at least once in the programmer’s life – how to emulate a database…
Read More » -
Running a Java class as a subprocess
Running a Java class (not a jar) as a subprocess is something I needed to do this week. More precisely,…
Read More »