Streams are an important introduction in Java 8 and follows the pipeline model and lazy initialization. It also enables out of the box parallelization support. We will also see Java 8 collection improvements.
In functional programming, we think in terms of functions. While Object Oriented programming abstract over data, functional programming abstract over behavior. Instead of data, stateless functions are be passed across the code.
Lambda expressions are Java's way of doing functional programming. Lambda expressions in computer science are anonymous functions: a function (or a subroutine) defined, and possibly called, without being bound to an identifier.
Let us get started with all new Java 8 features with simple examples and less theory. In this book we will not go deep into any of the topics, but will try to touch upon most important features with simple examples and hands on exercises. This book also assumes that you are familiar with all the topics mentioned in the Beginning Java Book.
This is a personal technical blog where we share our understanding on various concepts and is neither an official page or documentation for the products described here, nor the official views of the companies we work with.
Keywords used in this website are trademarks of their respective owners. This website is not affiliated with Oracle™ and/or any of the JEE frameworks like Spring™, Struts™, Hibernate™ and JSF™.
All contents and materials are provided freely without any warranty or liability and nothing within the site should be considered as professional advice. In any doubt, please ask, and we will try to help you based on our knowledge. Please let us know if you feel anything is not right here (including any copyright violation) and we will act upon it as fast as we can.