Skip to content
Abhishek Khare edited this page Mar 2, 2017 · 6 revisions

New Features Introduced in Java 8!!

  1. forEach() method in Iterable interface : Provides an easier way to iterate through a collection. The list API further provides an handle for streaming the output, like filtering output based on criteria. The For Each method accepts an object type action(Consumer for list and BiConsumer for Map type), which allows us to separate the business logic from the iteration logic. See example - Java8ForEachExample.java

  2. default and static methods in Interfaces

  3. Functional Interfaces and Lambda Expressions

  4. Java Stream API for Bulk Data Operations on Collections

  5. Java Time API

  6. Collection API improvements

  7. Concurrency API improvements

  8. Java IO improvements

  9. Miscellaneous Core API improvements

  10. Parallel operations

  11. Java + JavaScript = ❤

  12. Concurrent accumulators

https://www.tutorialspoint.com/java8/java8_overview.htm

https://leanpub.com/whatsnewinjava8/read

http://www.journaldev.com/2389/java-8-features-with-examples

Clone this wiki locally