#learnwithkrishnasandeep #javacodinginterviewquestions #javaexamples #javaprograms #javatutorials #javaprogramming Stream Distinct operations :
---------------------------------------
a) its present stream interface.
b) it returns distinct elements from interface.
c) Used hashcode and equals method to return distinct elements.
filter() :
-------
It returns the stream which matches the given predicate.
Its an intermediate operation.
Operations are always lazy.
It will not perform any filtering on existing stream.
it creates new stream
Stream filter(Predicate p)
Download
0 formats
No download links available.
Java8 Streams tutorials | Distinct and Filter method on streams with example | NatokHD