R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does `Collectors.counting()` return?

  • (A) Long
  • (B) int
  • (C) Optional
  • (D) Double
  • Correct Answer - Option(A)
  • Views: 12
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`counting()` returns a `Long` representing the number of elements.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.