+1 vote
in JAVA by (30.8k points)
What is the difference between Collection and Stream?

1 Answer

0 votes
by (30.8k points)

The main difference between a Collection and Stream is that Collection contains their elements, but Stream doesn't. Stream work on a view where elements are actually stored by Collection or array, but unlike other views, any change made on Stream doesn't reflect on the original Collection.

Related questions

0 votes
0 votes