A

Admin • 833.24K Points
Coach

Q. How do you create an infinite stream?

  • (A) Stream.infinite()
  • (B) Stream.generate()
  • (C) Stream.loop()
  • (D) Stream.unbounded()

Explanation by: Admin

`Stream.generate()` creates an infinite stream using a Supplier.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.