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...
The Completable Future feature is powerful to run asynchronous methods for better performance. In Java 5 there is the Future interface, however, the Future interface doesn’t have many methods that would help us to create robust code. To solve...
There are many concepts involved in Java Challenge! In essence, we will explore lambdas and the Function interface the most. However, we also have static methods introduced in Java 8 the private method in interfaces introduced in Java 9. In the...
Do you know what are the differences between method references and lambdas? In this Java Challenge, we will explore how lambdas and method references behave so that you can really understand how they work! Now that you know the main context...