Which method returns the count of elements in the Stream?

  1. size()
  2. count()
  3. length()
  4. total()
Correct answer count()

Explanation

count() returns the number of elements in the stream.

Update: Admin added a tag on this question

Topics

By Admin · · 36 views