The introduction of Java 8 was quite groundbreaking in that the rollout of the new lambda syntax. The whole "functional" approach created quite a buzz.
I was just casually browsing my LinkedIn feed and came across the Java 9 article. Skimming through that as well as the official Oracle blog here are the key things that were added:
I was just casually browsing my LinkedIn feed and came across the Java 9 article. Skimming through that as well as the official Oracle blog here are the key things that were added:
- Factory methods to initialize collections. Earlier the idiom to initialize it were quite verbose. The following is how to declare it:
- The Optional class that was introduced in Java 8 to deal with Null pointer exception has gone some makeover
- The Stream interface that works with a collection has been enhanced. More on this in the later blog post
List<String> list = List.of("Ahsan", "Tom", "Jerry");
No comments:
Post a Comment