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...
It’s possible to use type erasure generics in a method with Java. To know how to use generics is important because then you are able to create highly reusable code. In the following Java Challenge, you will see the generic type that will be...
The Optional concept is present in many other programming languages. The main goal of the Optional class is to avoid NullPointerException. It’s much easier to deal with null values when we use the concepts of an Optional. In this challenge, we...
Understanding deeply how to use a Map, equals, and hashcode in Java will be a massive help for you to create high-quality code. The Map and object reference concepts are not only present in the Java language but in almost all programming languages...
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...
Polymorphism is one of the most important Java concepts. We might be not even aware we use it all the time but when we instantiate an ArrayList and assign it to a variable of the List type, we are using polymorphism. It’s a powerful concept...
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...
Overloading is one of the core Object-Oriented programming concepts which is highly important to master. It’s an important fundament that can make our code more readable and easier to maintain, therefore with fewer bugs when applied...