title: Java-8 Stream returned by .map will be parallel or sequential?
body: <p><code>Stream</code> returned by <code>map</code> or <code>mapToObj</code> methods is always sequential or does it depend on whether the state of the calling stream was parallel or not?</p>
  
  <p>The documentation of <a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/IntStream.html#map-java.util.function.IntUnaryOperator-" rel="noreferrer"><code>IntStream</code></a> does not answer this explicitly or I cannot understand it properly:</p>
  
  <p>I am wondering if my stream from the following example will be parallel up to the end or it will change at some point.</p>
  
  <pre><code>IntStream.range(1, array_of_X.size())
          .parallel()
          .mapToObj (index -&gt; array_of_X.get(index)) // mapping#1
          .filter (filter_X)
          .map (X_to_Y) //mapping#2
          .filter (filter_Y)
          .mapToInt (obj_Y_to_int) //mapping#3
          .collect(value -&gt; Collectors.summingInt(value));
  </code></pre>