Flow control is a basic Java feature but it can be tricky too. Do you think you can get the following Java Challenge right? If you want to watch the FULL video explanation check it out at the following link: Keep breaking you limits and doing...
Since Java 9, it’s possible to use Optional with a stream in case we need to manipulate values from a List. In this Java Challenge, we will explore the use of a stream in an Optional! Are you ready to solve this Java Challenge? If you want to...
In Java 12 the new switch case with lambda preview feature was introduced which reduces the boilerplate code. In Java 14, this feature became standard. Now instead of using the break keyword in every case statement, we can simply use a lambda...
This Java Challenge will introduce the ConcurrentHashMap class that is useful to use in a multi-thread environment. The ConrrentHashMap can also be used to delete an element inside a for loop for example. The ConcurrentHashMap will synchronize...
Even still there are plans of removing Serialization from Java completely, it’s still relevant to know it since many systems and projects are using it. If you are curious to know more about the subject, you can check the following article: JDK...
Functional Programming is a very powerful paradigm that in Java, makes code more concise and easier to understand. The Function functional interface can be used as a first-class citizen function in Java, this means that we can pass a function to a...
In Java 9 we can use Collection Factory with List, Set, or Map. This makes code more concise and easier to read because we don’t need to add element per element in the Map. Therefore, it’s time to try this fun Java Challenge! Are you...
In the real world, we work with Date Period very often. In any kind of system, it’s inevitable that we will need to deal with Dates. Therefore, let’s explore how to do that with Java in a fun Java Challenge! You can also watch the full...
When we are working with Threads, it’s important to know when to use a daemon or a non-daemon Thread. Do you know if the main Thread is daemon or not? Do you know what is a daemon Thread? That’s what you will find out by trying out the...
Using streams concurrently with the parallel method is a good idea to optimize performance. It’s not always that we can use the parallel method, for example, when we depend on the order of logic execution. However, when we can process the...











