spliterator() method in Collection Interface Java 8

We also have new spliterator() method in Collection Interface. We can see Spliterator as Iterator for the Stream. The Iterator for the Collection same how Spliterator is for the stream. Spliterator is able to split the Collection or Stream just because it needs to parallelize the processing of that Collection or that Stream.



Leave a Reply

Your email address will not be published. Required fields are marked *