Lambda Expression

Java 8 Method References

Java 8 Method Reference (with Examples)

Since Java 8, in simplest words, the method references are a way to refer to methods or constructors without invoking them. Learn the syntax with examples.

Java Comparator with Lambda

Learn to create a Comparator instance with lambda expressions, method references and chaining multiple comparators for complex comparisons.

Java 8 Predicate Example

Java Predicates are boolean-valued statements that may be true or false depending on the test argument. Predicates are used to filter Streams.

Lambda Expressions in Java

Lambda expressions are known to many of us who have worked on advanced languages like Scala. The term “lambda” has its origin in Lambda calculus that uses the Greek letter lambda (λ) to denote a function abstraction. Lambda expressions were introduced to Java as part of Java 8 release. 1. What are …

Java 8 Date Time API

Java 8 contains the new Date and Time APIs/classes (JSR-310), called ThreeTen, which will change how you have been handling dates in Java.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.