By going through the new Java features, I suspect most of them are not really revolutionary, but sure most of them can make the code more readable.
The day Java will look really like Groovy, then I will be really happy.
This one is VERY comprehensive and terse - no blablabla :
http://winterbe.com/posts/2014/03/16/java-8-tutorial/
covering:
- Default Methods for Interfaces
- Lambda expressions
- Functional Interfaces
- Method and Constructor References
- Lambda Scopes
- Predicates
- Functions
- Suppliers
- Consumers
- Comparators
- Streams
- Filter
- Sorted
- Match
- Count
- Reduce
- Parallel Streams
- Sequential Sort
- Parallel Sort
- new Date-related classes
Another example-rich post is: http://javarevisited.blogspot.sg/2014/02/10-example-of-lambda-expressions-in-java8.html
No comments:
Post a Comment