Static keyword in Java

In Java, variables, which are declared with the static keyword, belong to the class, not to the instance of the class. This means that we do not need to initialize objects to use variables that are declared with the static keyword in those classes. For… Read More

Learn about Predicate Functional Interface in Java

The Predicate interface is used primarily to filter a Stream object. Using the filter() method with the Predicate interface parameter will allow us to filter the items in the Stream object to satisfy some conditions. The content of this interface is as follows:

As… Read More

Learn about Function Functional Interface in Java

Function interface is used to convert data from input parameters to return results in a different format. To do this, we will implement the apply() abstract method defined in the Function interface. But first, let’s look at the contents of the Function interface.

We… Read More

Install Jenkins on Ubuntu

Jenkins is a tool that makes it easy to build source code for software projects. In this tutorial, I will guide you to install Jenkins on Ubuntu and will have some instructions about it in the incoming tutorials. To install Jenkins, you need to install… Read More

delayedExecutor() method of CompletableFuture object in Java

This method was introduced from Java 9. Here we have two overload methods delayedExecutor(), the first method has the following syntax:

This method returns an Executor object from the default Executor object that the CompletableFuture object uses to execute the task, after the delay.… Read More