~/talk

Java 9: the good parts (not modules)

Talkat Joker 2017 · 2017-11-03..11-04· [java]
links:none on file
slides:none on file

Java 9 adds dozens of concrete conveniences and fixes rather than vague promises: factory methods List.of/Set.of/Map.of (maps limited to 10 overloads, Map.ofEntries beyond that), immutable List behavior versus Arrays.asList quirks, a null-coalescing helper Objects.requireNonNullElse, optional helpers like ifPresentOrElse and optional::stream with flatMap, I/O helpers readAllBytes/readNBytes/transferTo, Files.lines memory mapping, ProcessHandle.onExit returning a CompletableFuture, an incubating async HTTP client, and removal/deprecation of legacy APIs such as finalize and Class.newInstance.

AI-written summary · about

  1. 0:00Introduction
  2. 0:24Collection literals
  3. 3:57Pop quiz on map literals
  4. 5:21Arrays vs List.of
  5. 8:10Missing Pair class
  6. 9:35Elvis operator in Java
  7. 10:40Optional improvements
  8. 13:28Optional cheat sheet
  9. 14:33Stream API enhancements
  10. 19:09Read all bytes from stream
  11. 20:57Scanner tokens stream
  12. 21:38Regex match results
  13. 23:25Process API updates
  14. 25:32HTTP client incubator
  15. 29:47Deprecated APIs
  16. 31:54Class.newInstance deprecated
  17. 32:57Underscore variable name
  18. 33:19Try with resources
  19. 34:00Interface private methods
  20. 35:04SafeVarargs on private methods
  21. 36:56Diamond operator in anonymous classes
  22. 37:59Obscure compiler fixes
  23. 39:25Interface method parameter 'this'
  24. 41:31Arrays.toList.toArray quirks
  25. 42:58Java version number quirks
  26. 44:03Multi-release JARs
  27. 45:26Command-line argument cleanup
  28. 47:52Modern Java options
  29. 49:17JShell features
  30. 51:04API docs search
  31. 51:25Resource files UTF-8
  32. 51:47JavaC output directories
  33. 52:07Java DB and Swing updates
  34. 52:51Illegal access warnings
  35. 53:13Summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.