When I call Stream.sort(..) is there a new array of elements created and the stream iterates over the newly created sorted array?
In other words, how Java 8 Stream does sort under the hood?
When I call Stream.sort(..) is there a new array of elements created and the stream iterates over the newly created sorted array?
In other words, how Java 8 Stream does sort under the hood?