R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which is a stateful intermediate operation?

  • (A) map()
  • (B) filter()
  • (C) sorted()
  • (D) flatMap()
  • Correct Answer - Option(C)
  • Views: 8
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`sorted()` is a stateful operation because it needs to see all elements before proceeding.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.