The feature we always hear about whenever Java 9 is in the news is Jigsaw, modularity. But this doesn't scratch the same developer itch that Java 8's lambdas and streams did, and we're left with a vague sensation that the next version might not be that interesting.
Java 9 actually has a lot of great additions and changes to make development a bit nicer. These features can't be lumped under an umbrella term like Java 8's lambdas and streams, the changes are scattered throughout the APIs and language features that we regularly use.
In this presentation Trisha Gee shows, via live coding:
What the Java Platform Module System is and how to make your code modular
How we can use the new Flow API to utilise Reactive Programming
The improvements to the Streams API that make it easier to control infinite streams
How to the Collections convenience methods simplify code
Along the way we bump into other Java 9 features, including some of the additions to interfaces and changes to deprecation.
Timeline:
1:25 Why Java 9?
3:15 The Case Study
4:17 Compiling with Java 9
5:17 Underscore as an identifier no longer valid
6:43 Encapsulate Most Internal APIs
9:07 Jigsaw (screen freezes here until 11:32, but it's mostly talking anyway)
12:04 Java Platform Module System
14:21 module-info.java and live coding using JPMS in an existing application
18:10 Automatic modules
20:20 Using my custom modules
23:59 A more complex module-info.java example
25:40 Disadvantages of applying JPMS to existing code
28:46 Advantages of JPMS
29:50 Reactive Streams API
32:12 Questions (the answers are also covered below).
34:07 Module diagrams in IntelliJ IDEA
43:39 Convenience Factory Methods for Collections
49:43 Private Methods on Interfaces
51:01 New Methods on the Streams API
54:17 New Methods on Optional
58:52 The Stack Walking API
59:47 Process API Updates
1:01:58 Multi Release JAR Files
1:05:19 Updated Deprecation
1:06:43 HTML 5 Javadoc & Javadoc Search
1:07:47 JShell & Support in IntelliJ IDEA
1:09:33 Summary
*Author: Trisha Gee
Download IntelliJ IDEA: https://jb.gg/download-intellij-idea
Join us:
Website https://jb.gg/website
Blog https://jb.gg/blog
Twitter / intellijidea
Facebook / intellijidea
In questa pagina del sito puoi guardare il video online Real World Java 9 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato IntelliJ IDEA, a JetBrains IDE 12 ottobre 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 9,263 volte e gli è piaciuto 87 spettatori. Buona visione!