Tag Archives: lambda

Java 8 – Some of the new features

In this post, some of the new features of JAVA 8…

 

…and here are the results from running the file above

Note that the build fails because we pass null to the Optional and we have a condition to throw an exception if null is passed to it (this is the reason why this line is the last statement of this example).

Thank you! 🙂