Home Java 8

Java 8

Java 8 Supplier with examples

1. What is Java 8 Supplier interface? Java 8 Supplier is a functional interface whose functional method is  get(). The Supplier interface represents...

Java interface static method with examples

Java interface static method : Since Java 8, in addition to default methods we can define and implement static methods interfaces. In...

Java default method in interface or method extension

Java 8 allows to define default method in interface. Default methods allow us to add new methods in interface that are automatically...

Java 8 Function and examples

1. What is Function interface in Java? Java 8 Function interface is exactly same as Predicate except that functions can...

Java 8 Consumer with examples

1. What is Java 8 Consumer? Java 8 Consumer is a built-in functional interface that represents an operation that accepts...

Java Optional class with examples

1. What is java Optional? Java Optional class provides a way to deal with null values. It is used...

Java Lambda Expression with examples

1. what is Java Lambda (λ) Expression ? A Java lambda expression is a function which can be created...

Java predicate with examples

1. What is Java Predicate? A java Predicate is a functional interface whose functional method is test(Object), that takes an argument...

Java functional interface with examples

1. What is java Functional interface? A java functional interface is an interface that contains exactly one abstract method.

Stay in Touch