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 how the Concurrent Modification Exception appears when we update an iterator while iterating a regular collection and how to avoid that exception using concurrent collections.
In this article, we'll examine three thread problems associated with the liveness of a multi-thread application. The most common ones are deadlocks, livelocks, and starvation.
Learn how to create a thread in Java using the Runnable and Thread classes.