Oracle has done a great job in continually updating the Java platform. Their insights into migrating from older versions to the new JDK is worth reviewing. In this section, we will look at preparatory steps, breaking encapsulation, changes to the runtime image, components such as tools and APIs that have been removed, changes to garbage collection, and deployment.
Advice from Oracle
Preparatory steps
Oracle provides a five-step process to help developers migrate their Java applications from pre-Java 9 versions to a modern version, 9, 10, or 11. These steps are listed as follows and then covered in subsequent sections:
- Get the JDK early access build
- Run your program before recompiling
- Update third-party libraries and tools...