A

Admin • 828.03K Points
Coach

Q. What is the result of calling `stream().distinct()`?

  • (A) All elements are sorted
  • (B) All duplicate elements are removed
  • (C) The stream is reversed
  • (D) All null values are removed

Explanation by: Admin
`distinct()` returns a stream with duplicate elements removed.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.