What is stream api in java8?



What is stream api in java8?..

Answer / Bindu Shukla

Stream API is a high-performance API introduced in Java 8 for processing large data sets in functional style. It provides methods to create, filter, map, and reduce collections of elements in a declarative manner.nnStream operations can be divided into three main categories: intermediate operations (like filter(), map(), limit(), distinct()), terminal operations (like count(), forEach(), collect()), and reduction operations (like min(), max(), average()).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a consumer in java?

1 Answers  


What if static is removed from main method?

1 Answers  


Write a program to show whether a graph is a tree or not using adjacency matrix.

1 Answers   Amazon,


Can we call a non-static method from inside a static method?

1 Answers  


What are the different data types in java?

1 Answers  


What is a finally block? Is there a case when finally will not execute?

1 Answers  


Can an interface be final?

1 Answers  


What does a boolean method return?

1 Answers  


how can u apply shallow cloning and deep cloning to create object?

1 Answers   Yash Technologies,


Difference between String and String Buffer?

3 Answers  


What is a default package ?

7 Answers  


Why we need Finally with try? pls expain with ur example..

3 Answers   BitWise, HDFC, TCS,


Categories