On Q2, 2.
In reality the limit(10) will pass only the first 4 elements to the stream right? Because the when it reaches the element "80" the noneMatch will return false.Since the limitmethod limits the incoming streams to at mostthe given number of elements and since the stream in this example contains only five elements, limit(10)will pass on all the five elements to the outgoing stream. However, one of the elements is greater than 70and so, noneMatch(i -> i>70);will return false.
Thanks,
João