Page 1 of 1

About Question enthuware.ocpjp.v8.2.1782 :

Posted: Thu Mar 03, 2016 2:06 pm
by javalass
It is easy to identify which operations are intermediate and which are terminal. All intermediate operations return Stream (that means, they can be chained), while all terminal operations return void.
This is not correct. Terminal operations can return a boolean, an Optional<T>, a long, etc. They just don't return a Stream.

Re: About Question enthuware.ocpjp.v8.2.1782 :

Posted: Thu Mar 03, 2016 9:16 pm
by admin
You are right. Fixed.
thank you for your feedback!
Paul.