Major differences between OpenJDK 17 and OpenJDK 11

Solution Verified - Updated

Environment

  • OpenJDK 11
  • OpenJDK 17

Issue

  • What are the differences between OpenJDK 17 and OpenJDK 11?
  • Was there anything added or removed in JDK 17? What was deprecated?

Resolution

Major differences

Features added

Feature deprecated/removed

  • Deprecation of the Security Manager (that will be removed in a future release)
  • Removal of the Remote Method Invocation (RMI) activation mechanism while preserving the rest of RMI. The RMI Activation mechanism is obsolete and disused and was deprecated for removal in JDK 15.
  • Deprecating the Applet API for removal: no that much used, since all web browser vendors either have removed support for Java browser plug-ins or have announced plans to do so. This API was marked as deprecated in JDK 9.
  • Removal of Nashorn JavaScript Engine: Content from openjdk.org is not included.JEP 372
  • Content from openjdk.org is not included.JEP 363: Remove the Concurrent Mark Sweep (CMS) Garbage Collector. -XX:+UseConcMarkSweepGC has been deprecated in JDK9. We can use G1GC as concurrent GC in JDK17.
Components
Category
Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.