R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does `Stream.empty()` return?

  • (A) null
  • (B) A Stream with null value
  • (C) A Stream with one empty string
  • (D) An empty sequential Stream
  • Correct Answer - Option(D)
  • Views: 1
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`Stream.empty()` creates an empty Stream instance.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.