stream() and parallelStream() Methods of Collection interface in Java 8

There are many new method introduced in Collection Interface, Iterable Interface, List Interface and others in Java 8 release. But one of the important method that are introduced in Java 8 Collection interface is stream() and parallelStream() method, that bridges between collection API and stream API.


Also check spliterator() and removeIf() method introduced on Collection Interface in Java 8. Apart from that forEach() method has been added to Iterable Interface, replaceAll() and sort() method added to List Interface.

Leave a Reply