0 votes
in JAVA by
What distinguishes a collection from a stream?

1 Answer

0 votes
by

A Package includes its elements, whereas a Stream does not, and this is the primary distinction between the two types of data structures. Unlike other views, Stream operates on a view whose elements are actually kept in a collection or array, but any changes made to Stream do not affect the original collection.

...