Tag: Java

date period

Spider Man Date Period Java Challenge

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...

daemon thread

Daemon Thread Java Challenge

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...

parallel stream

Parallel Streams Java Challenge

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...

Optional takeWhile dropWhile

Optional takeWhile dropWhile Challenge

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...

map equals hashcode

Map equals hashcode Challenge

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...

dracula polymorphism

Hidden Dracula Polymorphism Java Challenge

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...

jedi lambda join challenge

Jedi Lambda Join Java Challenge

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...