R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which method is used to convert primitive streams to object streams?

  • (A) toBoxed()
  • (B) convert()
  • (C) wrap()
  • (D) boxed()
  • Correct Answer - Option(D)
  • Views: 2
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`boxed()` converts a primitive stream (like IntStream) to a Stream of wrapper objects.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.