R

Ram Sharma • 3.40K Points
Extraordinary

Q. What happens if a terminal operation is not called on a stream?

  • (A) Stream executes all operations
  • (B) Stream throws error
  • (C) Nothing happens
  • (D) Stream resets
  • Correct Answer - Option(C)
  • Views: 1
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
Intermediate operations are lazy; nothing executes until a terminal operation is called.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.