1.

What is the difference between collection and stream?

Answer»
S.noCollection APIStream API
1.Collection API is for storing the data in the DIFFERENT KINDS of data structures.Stream API is not a data STRUCTURE; it is used for computation of the data on the big set of objects
2.A FINITE number of elements can be STORED in a data structureAn infinite number of features can be stored
3.Consumption of elements is multiple timesConsumption of elements is only once.


Discussion

No Comment Found