Java8 Innards Interview Question-Answer Part – 2
Q.1 If you wanted to process a stream of names, extract the male names, and store them in a new list, what is the appropriate operation to be used? A. Both Stream.reduce and Stream.collect B. Stream.collect C. Stream.reduce D. Stream.filter Ans : Stream.collect Q.2 …
Java8 Innards Interview Question-Answer Part – 2 Read More »