A

Admin • 825.56K Points
Coach

Q. Which method creates a stream from a Set?

  • (A) stream()
  • (B) getStream()
  • (C) toStream()
  • (D) asStream()
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category Java
  • Hashtags: Java Set

Explanation by: Admin
The `stream()` method returns a sequential Stream with this Set as its source.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.