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.
This post shows how to concatenate String using trivial methods like the plus operator and the concat method. Here, we'll look at some problems associated with those two ways and how to avoid them using the StringBuilder and StringBuffer classes.
Learn how to create a thread in Java using the Runnable and Thread classes.
This article explains the toString method, its purpose, and how to use it effectively in Java classes.
In this article, you'll learn what a nested class is, its benefits and drawbacks, and how they can appear in Java applications.