~/talk

Benefiting from Java 9 Improvements

Talkat Oracle Code One 2018 · 2018-10-22..10-25· [java]
slides:none on file

Java 9 deprecates finalize and adds private methods in interfaces to factor shared code, makes try-with-resources accept outside (effectively final) variables so injected resources work, and bans underscore as an identifier. Streams gain takeWhile and dropWhile and an overloaded iterate(seed,predicate,fn) for logical termination. Optional adds ifPresentOrElse, or and optional.stream(), Collectors get filtering/flatMapping helpers, and compact immutable factories appear as List.of/Set.of/Map.of.

AI-written summary · about

  1. 0:00Introduction
  2. 1:32Interfaces
  3. 5:06Finalize
  4. 6:47Lifes Lesson
  5. 7:32Close Method
  6. 9:35External Resource
  7. 11:55Zombie Object
  8. 12:26Underscore
  9. 14:32Using Underscore
  10. 25:01Instream Methods
  11. 32:19Optional
  12. 38:51Our Method
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.