title: Java 8 stream operation on empty list
body: <p>I am just wondering what will be behavior of Java 8 <em>stream</em> on empty list.</p>
  
  <pre><code>List&lt;?&gt; emptyList = new ArrayList&lt;&gt;();
  List&lt;?&gt; processedList = emptyList.stream().collect(Collectors.toList());
  </code></pre>
  
  <p>Will this be empty list or <code>null</code>?</p>
  
  <p>I know <em>streams</em> do lazy propagation, so in this case will call go to <code>collect()</code> method or just it will end at <code>stream()</code> method?</p>