Java Thread Programming (Part 7)

Can we create as many Java threads as we want? I will try to come up with an answer via an exercise, so bear with me!

Java Thread Programming (Part 6)

Have you ever wondered what is the purpose of the “wait()”, “notify()”, “notifyAll()” methods that come with each Java object?

Let’s Use Optional to Fix Method Contracts

Optional is a mystery box, a wrapping paper: it may or may not contain the value. When we specify that in a method signature, we assume that the box might be empty.

Java Thread Programming (Part 5)

In this article, we will discuss another situation called “race conditions” and how we can resolve it.