Java 8 Stream intermediate operations return another Stream which allows you to call multiple operations in the form of a query.
Stream intermediate operations do not get executed until a terminal operation is invoked.
All Intermediate operations are lazy, so they’re not executed until a result of processing is actually needed.
Traversal of the Stream does not begin until the terminal operation of the pipeline is executed.
Here is the list of all Stream intermediate operations:
filter()
map()
flatMap()
distinct()
sorted()
peek()
limit()
skip(
On this page of the site you can watch the video online Java8 13 Intermediate Operation in Java8 Peek,distinct,skip with a duration of hours minute second in good quality, which was uploaded by the user codeWithVenky 01 January 1970, share the link with friends and acquaintances, this video has already been watched 83 times on youtube and it was liked by 6 viewers. Enjoy your viewing!