Java 8 introduced many few features. This page lists all the new Java 8 features with examples.
Java 8 New Features
You can click the links below to understand Java 8 new features like Functional Interfaces, Lambda expressions, Method references, etc
- Java 8 Optional Explained with code samples
- Java 8 LocalDateTime class explained with code samples
- Java 8 Map compute methods with code samples
- Java 8 SplitIterator Explained with code samples
- Java 8 Collection removeIf method with code samples
- Java 8 Iterator forEachRemaining method with code samples
- Java 8 LocalTime class in with code samples
- Java 8 LocalDate Class explained with code samples
- Java 8 Method Reference operator explained
- Lambda expressions in Java 8 explained with code samples
- Java 8 Stream API explained with code samples
- Java 8 forEach loop explained with code samples
- Java 8 Functional Interface explained with code samples
- Java 8 Static Interface methods with code samples
- Java 8 Default Interface methods explained
Java 8 Examples
You can click the links below to see useful Java 8 Stream API Examples, Java 8 Lambda expression examples, etc
- IntBinaryOperator
- putIfAbsent and getOrDefault Map methods with examples
- DoubleUnaryOperator in Java 8 With Code Sample
- IntFunction in Java 8 With Code Sample
- ToIntFunction in Java 8 With Code Sample
- Java 8 DoubleToLongFunction Example
- Java 8 DoubleToIntFunction Example
- Java 8 DoubleBinaryOperator example
- How to add a number of days to a Date in Java
- Java 8 LongSupplier explained with code samples
- Java 8 Stream API Distinct method with code samples
- How to find the number of years between two Dates
- Java 8 BinaryOperator Example
- Java 8 DoubleFunction Example
- Java 8 DoubleSupplier Example
- Stream API AllMatch in Java 8 with examples
- Java 8 LongConsumer example
- Java 8 Stream API map method with examples
- Java 8 IntConsumer Interface
- Java 8 DoubleConsumer example
- Stream API Filter examples with code samples
- Java 8 BiFunction Example
- Stream API anyMatch explained with code samples
- Java 8 UnaryOperator Example
- Java 8 BiConsumer Interface Example
- Java 8 Function Interface Example
- Java 8 BiPredicate Example
- Java 8 Consumer Interface example
- Java 8 IntSupplier Interface Example
- LongPredicate Interface in Java 8 with code samples
- IntPredicate Interface in Java 8 with examples
- Java 8 BooleanSupplier Example
- DoublePredicate Interface in Java 8 with code examples
- Predicate interface in Java 8 with examples
- Java 8 Supplier Interface example
The code for all these Java 8 Examples is present at this Github location