0 votes
in JAVA by (19.8k points)
A Stream API: What Is It? Why is the Stream API necessary?

1 Answer

0 votes
by (19.8k points)

Java 8 now has a new functionality called Stream API. It is a unique class used for handling items from sources like collections.

The Stream API is necessary for us because

  1. Because it offers aggregate operations, processing is made simple.
  2. Programming in the functional style is supported.
  3. It processes data more quickly. It is therefore suitable for greater performance.
  4. Parallel operations are possible.

Related questions

...