R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the purpose of `Stream.builder()`?

  • (A) Create a sorted stream
  • (B) Create a stream with unknown source
  • (C) Build a stream element by element
  • (D) Convert builder into list
  • Correct Answer - Option(C)
  • Views: 9
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`Stream.builder()` helps build streams manually by adding elements one by one.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.