Sobes.tech
Junior — Middle

Have you ever upgraded a project from Java 8 to Java 11, and what were the features of this process?

sobes.tech AI

Answer from AI

Updating a project from Java 8 to Java 11 involves several features:

  • Modularity (Project Jigsaw): Java 9 introduced a module system that changed the structure of the JDK. Some internal APIs became inaccessible or were moved, which could cause compatibility issues.

  • Removal of deprecated components: Java 11 removed some deprecated tools and APIs, such as Java EE and CORBA modules.

  • New features and improvements: Performance has been improved, and new APIs have been added (e.g., var for local variables in Java 10, new methods in String API).

  • Changes in build and runtime: Java 11 is delivered without built-in JavaFX, which needs to be added separately.

  • Dependency updates: Some libraries may require updates to support Java 11.

During migration, it is recommended to:

  1. Check code and dependency compatibility.
  2. Update build scripts and tools.
  3. Test the application on the new JVM version.

Example: if the project uses internal APIs, they need to be replaced with official equivalents or necessary modules added.

Have you ever upgraded a project from Java 8 to Java… - sobes.tech