~/talk

Modern Java: This is not your father's Java anymore

Talkat GeeCON Prague 2022 · 2022-05-11..05-13· [java]
slides:none on file

Covers concrete language changes from JDK11→17 and a JDK19 preview: records generate constructor/getters/equals/hashCode/toString so records are final immutable data carriers that avoid reflective deserialization issues; text blocks use triple quotes with automatic indentation trimming; switches become value-returning, exhaustive expressions that use yield for blocks and switch is now an exhaustive expression with yield; sealed types use permits to restrict subclasses; pattern matching adds type and record deconstruction (guarded patterns, when). JDK19 shows virtual threads with huge scalability (claim: millions on a laptop) and a newVirtualThreadPerTaskExecutor, preview only and watch for synchronized/ThreadLocal caveats.

AI-written summary · about

  1. 0:00Introduction and Java's evolution
  2. 3:15Six-month release cycle and LTS changes
  3. 5:03Why upgrade to Java 17
  4. 6:30Project Amber and modern Java features
  5. 8:21Switch expressions explained
  6. 12:33Text blocks for cleaner code
  7. 17:30Records as immutable data structures
  8. 25:21Sealed classes and inheritance control
  9. 30:46Pattern matching in Java
  10. 42:20Virtual threads introduction
  11. 48:43Q&A session
~/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.