R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which operation is used to convert Stream<T> to primitive streams?

  • (A) mapToPrimitive()
  • (B) primitiveMap()
  • (C) mapToInt(), mapToDouble(), mapToLong()
  • (D) convertToPrimitive()
  • Correct Answer - Option(C)
  • Views: 7
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
Java Streams provide `mapToInt()`, `mapToDouble()`, and `mapToLong()` to convert to primitive streams.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.