Core Java
-

Runtime Method Overriding in an Instantiated Java Object
Method overriding in Java allows a subclass to redefine a method inherited from its superclass. However, there are many real-world…
Read More » -

How to Split a String into an Int Array in Java
Working with numbers stored as text is a common task in Java applications. Data from files, user input, APIs, or…
Read More » -

Converting BCD to Decimal in Java
Binary-Coded Decimal (BCD) is a system of representing decimal numbers where each digit (0–9) is encoded using four binary bits.…
Read More » -

Understanding Java Object Arrays
In Java, everything is derived from the base class Object. The Object[] array is one of the most flexible types…
Read More » -

Sequenced Collections API: Standardizing Ordered Access
For decades, Java’s Collections Framework had a glaring inconsistency. Want the first element of a List? Call list.get(0). First element…
Read More » -

VMLens for Java Concurrency Testing
Writing unit tests for single-threaded code is standard practice. For concurrent, multi-threaded Java the same discipline wasn’t easy historically because…
Read More » -

JSpecify Annotations for Null Safety
The Billion Dollar Mistake Null pointer exceptions have plagued Java developers since the language’s inception, earning Tony Hoare’s famous designation…
Read More » -

Exploring Geometry Operations with JTS
The Java Topology Suite (JTS) is an open-source geometry engine written in Java. It provides a comprehensive API for modeling,…
Read More » -

Mocking Logger and LoggerFactory Example
1. Introduction The SLF4J library provides the Logger interface and LoggerFactory utility class to create a logger instance for a…
Read More »


