Which Stream type is unordered by default?

  1. IntStream
  2. List.stream()
  3. Set.stream()
  4. Map.stream()
Correct answer Set.stream()

Explanation

Streams from a `Set` are unordered because sets are unordered collections.

Update: Admin added a tag on this question

Topics

By Admin · · 25 views