- part 1: Java 8 to 11 interfaces
- part 2: Java 8 to 11 streams
What is intermediate operation and terminal operation?
Intermediate Operation (lazy) - these are methods of a stream and always return a Stream. As was said they are Lazy which means that they need a terminal operation to invoke them and that means that they do not process any data. They are only a declaration of the operation on a given stream. Same as String str is a variable declaration.
Terminal Operation (final) - these guys are not lazy, and they work...