How do I choose the JDK version?

Asked 2 years ago, Updated 2 years ago, 77 views

I am thinking of developing a Java web application.
Could you please let me know what version of JDK I should choose at that time?

The configuration is as follows:

framework:SpringBoot
databases:Oracle 19C
middleware:Apache-Tomcat
browsers:Chrome or Edge
Java: Something that is as new and stable as possible.Free
Others: The system that registers and updates master data is not complicated.

Note: Both AP and DB servers have Windows Server 2016.

java spring-boot

2022-09-30 20:10

1 Answers

It's just my decision under those conditions at the reference level.

Identify the required JDK version for each configuration.

  • Oracle JDK: Java 11 and later "Oracle JDK (LTS)" will only be available to users with paid support contracts with Oracle.
  • OpenJDK: An open source implementation "OpenJDK" with the same functionality and quality as "Oracle JDK" is released from Java 11 and a binary is provided free of charge.
     
    Compare each JDK
    https://www.ossnews.jp/compare/Oracle_JDK/OpenJDK

If you summarize it like this, you can see that each product works after JDK8.
However, there is a commercial problem with Java, so if it is JDK11 or later, the function difference between Oracle and OpenJDK can be reduced.
(I think it's equivalent, but if you switch to the Oracle version at the time of official recruitment, you need to verify the operation.)

Based on the above...If you do not want to use new features beyond JDK11
If I were you, I would choose JDK11 for stability.

For your information.


2022-09-30 20:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.