Java8 Streams tutorials | Distinct and Filter method on streams with example
#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)
Видео Java8 Streams tutorials | Distinct and Filter method on streams with example автора Java Мастер Инструкция
Видео Java8 Streams tutorials | Distinct and Filter method on streams with example автора Java Мастер Инструкция
Информация
4 декабря 2023 г. 23:37:22
00:11:14
Похожие видео