Solved

Assuming That the Variable MyStringArrayList Has Been Populated to Contain

Question 38

Multiple Choice

Assuming that the variable myStringArrayList has been populated to contain a collection of String objects, which expression finds the number of elements in a stream created from the myStringArrayList collection?


A) myStringArrayList.of() .count()
B) myStringArrayList.stream() .count()
C) myStringArrayList.stream() .size()
D) myStringArrayList.stream() .length()

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions