[Edited]What is intStream? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

[Edited]What is intStream?

I saw this data type in a code and I want to know what is it? Is it related to stream api? if answer is yes, what is stream? What is use of Stream? And how can we use that in reference type & value type variable?

18th Sep 2019, 8:16 PM
Amir01
Amir01 - avatar
3 Answers
+ 1
it is concurrency alternative to for() / while() loop (loop is useful of course). It was added for the need of functional programming features. In some situations you can write simpler expresion instead piece of code. Unfortunately, it is not as fast implementation as a for() loop.
19th Sep 2019, 2:41 PM
zemiak
+ 1
Stream splits the sequence data into elements and allows you to perform certain steps for each element. Java 8 supports it in one complex chain of commands. It processes data with separate threads according to the concurrency programming rules.
19th Sep 2019, 6:18 AM
zemiak
0
What is use of Stream? And how can we use that in reference type & value type variable?
19th Sep 2019, 8:49 AM
Amir01
Amir01 - avatar