Difference between findAny() and findFirst() in Java 8
<p>I am little confused between <code>Stream#findAny()</code> and <code>Stream#findFirst()</code> of the  <code>Stream</code> API in Java 8.</p>

<p>What I understood is that both will return the first matched element from the stream, for example, when used in conjunction with filter?</p>

<p>So, why two methods for the same task? Am I missing something?</p>