R

Ram Sharma • 3.40K Points
Extraordinary

Q. What will `Stream.of(1, 2, 3).count()` return?

  • (A) 1
  • (B) 2
  • (C) 3
  • (D) 4
  • Correct Answer - Option(C)
  • Views: 2
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`count()` is a terminal operation that returns the number of elements in the stream.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.