
Streams Versus Collections
Both are the old and new notions of interfaces to a sequence of elements. So what’s the difference? In a nutshell, collections are about data and streams are about computations. Now imagine, when a movie is being streamed over internet. It is now a stream. The streaming video player needs to have downloaded only a few frames in advance of where the user is watching. Below text from Oracle.com … Continue reading Streams Versus Collections