What is returned by `Collectors.counting()`?
Correct answer
long
Explanation
`Collectors.counting()` returns a `long` representing the number of elements in the stream.
By Ram Sharma · · 35 views
`Collectors.counting()` returns a `long` representing the number of elements in the stream.
By Ram Sharma · · 35 views