R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the return type of `Stream.mapToInt()`?

  • (A) Stream<Integer>
  • (B) IntStream
  • (C) OptionalInt
  • (D) Integer[]
  • Correct Answer - Option(B)
  • Views: 11
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`mapToInt()` returns an `IntStream`, a specialized stream for integers.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.