In this tutorial, we'll look at what generics are, why they exist, and how to create generics in classes, methods, and records. In the last section, we'll examine the limitations of Generics and code examples where they don't work.
This article shows the details behind what is and why use the Singleton Pattern with 6 code implementations in Java. We'll discuss lazy and eager initializations, the enum Singleton, and thread safety.
This article shows the details behind the Record keyword introduced in Java 14. We'll look at their purpose, how to use them, real-world applications, and a cheat sheet to ace your upcoming interviews and exams.