Should I Upgrade to Java 17?
summary
Benchmarks use JMH on a 4‑core i5 laptop and report throughput in ops/sec, claiming JDK 17 consistently beats 8 and 11 for map.put/get (integers) and at large sizes for strings; measurement setup is JMH: 3 forks, 5 warmups, 5 iterations. Memory tests use Runtime (memory = total - free) and show smaller heap use on 17. Feature changes: var, switch expressions, text blocks, helpful NPEs, pattern matching, records, sealed classes. Note removed: Nashorn, CMS; strong encapsulation can break older libraries.
AI-written summary · about
chapters (3)
related talks
53mShould I Upgrade my Java?
40mShould I Upgrade My Java
44mJava 17: New and Exciting!
01h 05mJava 11 to 17 - Exciting New Features
46mGoing Java::Current in Production
47mHow and Why to Upgrade to Java 17
46mBeam Me Up, Java! A Journey through Java LTS Versions 11 to 21
50mThe Cool Thing about Cool Things in Java 16 & 17 LTS
