Home Java 8

Java 8

How to get current Date Time in java 8

A new date time api added in Java 8 in java.time package. In this tutorial we have covered examples to get...

How to compare dates in Java 8

In this article you will see several examples on how to compare dates in Java 8 and prior to Java 8. A...

A guide to Java BiConsumer + Examples

Java BiConsumer is a built-in Functional interface in java, represents an operation that accepts two input arguments and returns no result. This is...

Java BiFunction guide + Examples

Java BiFunction interface is a built in functional interface which accepts two arguments and produces a results. This is a functional interface...

Java BiPredicate guide + Examples

Java BiPredicate represents a Predicate (boolean-valued function) of two arguments and returns boolean value. This is a functional interface and can...

Java 8 identity function – Usage of Function.identity with Examples

Java 8 identity function that Function.identity() returns a Function that always returns it's input argument. In this article we will see...

java stream map method with 5 examples

In this guide we are going to see different examples of Java Stream map method, Java Streams introduced in Java 8.

Stream filter examples – Java 8

In this article we will see what is Stream filter method in Java 8 and how its works in java with different...

java 8 forEach method with list map stream examples

Java 8 forEach method is to process each element of Collection or Map or Stream, introduced in Java 8. Java foraEch method present in 3 interfaces one...

Generalized target type inference – java 8

1. What is type inference ?Invoking a generic method or constructor without specifying a type between angle brackets...

Parallel array sort and range sort examples

Parallel array sort in Java 8In Java 8, there are new methods introduced in java.util.Arrays class for Parallel Sorting.

Access parameter names at runtime in Java 8

1. Java 8 access parameter names at runtime :Java 8 introduced an easier way to access parameter names...

Constructor reference in Java 8 with examples

1. What is constructor reference in java 8?As you know constructors are kind of special methods, method reference...

Java 8 Stream API introduction with examples

1. Java 8 StreamA java Stream is a sequence of elements supporting sequential and parallel aggregate operations. A java...

Method reference in Java 8 and double colon operator

Before looking into what is method reference in java 8, let’s understand about java Double colon (::) operator, because to reference to a method...

Stay in Touch