Posts

Showing posts from January, 2022

What is Stream API in Java

What is Stream API in Java                               Data processing is an imperative part of any application. In the current age of data, need of data processing is going to be more and more complex. To support that each language supports a wide range of data structure and data processing  APIs. Java has a support for wide range of Collection API. None of the Java application can be developed without using Collection API. But along with lots of other features Java introduced Stream API in Java 8. So the obvious question pops up why has Java decided to introduce Stream API? Wasn't Collection API enough to support the growing need of data processing in terms of complexity and performance? We will try to find out answers to all of the questions in this article.  Collection vs Stream:                       ...