Core Java
-
Discovering the Magic Version Number of .class Files
Abstract What version of Java was used to create your .class files? For your own projects, this is easy to…
Read More » -
The Remainder Operator Works on Doubles in Java
I’ve been teaching at OSU for nearly two years, and it always astounds me how much I learn from my…
Read More » -
Sorting a List having null values with Comparator’s nullsFirst
Hello Friends, In this tutorial, we will see how we can sort a list of items when few of the…
Read More » -
Fat vs. Skinny Design
It seems that type/class hierarchies in OOP may be designed in two extreme ways: either with full encapsulation of data…
Read More » -
Validating code and architecture constraints with ArchUnit
Introduction ArchUnit is a library for checking Java code against a set of self defined code and architecture constraints. These…
Read More » -
How Linear Search or Sequential Search Algorithms works in Java? Example Tutorial
Hello guys, earlier, I have talked about how the binary search algorithm works and shared the code to implement the…
Read More » -
Java14: Join Database Tables with Java 14’s new Record
Did you know that you can join database tables into a Java Stream with Java 14’s preview record feature? Read…
Read More » -
JDK 14/JEP 305 instanceof Pattern Matching “Smart Casts”
I generally view the presence of the instanceof operator in Java code as a “red flag,” meaning that it’s not…
Read More » -
Source Code for Effective Java Third Edition Updated to Use Newer Features
Those who have read the Third Edition of Effective Java are likely aware of the source code associated with that…
Read More »