What is the function of the stream() and parallelStream() methods of the Collection interface?

What is the function of the stream() and parallelStream() methods of the Collection interface?



Answer: The first method will return a Stream object, while the second will return a possibly parallel stream object


Learn More :

Data Structures

Learn More Multiple Choice Question :