One, foreword

This article is participating in “Java Theme month – Java brush questions check”. This column is the first time for Java related brush questions knowledge, I will share related knowledge from simple to complex, if there is anything wrong, please correct.

This article will continue to share the basic knowledge of Java interview, Oracle JDK and OpenJDK comparison, detailed analysis as follows.

Two, knowledge points

1, Oracle JDK:

Oracle JDK is developed by Oracle Corporation, is a Sun license, is based on the Java Standard edition specification implementation. It supports multiple operating systems, can operate across platforms, and is based entirely on the Java language. The Oracle JDK is a collection of programming tools that contain multiple components as libraries.

2, its:

OpenJDK is an open source and free implementation of Java SE platform edition, developed by Sun Corporation from 2006, it is based on C++ and Java language, also supports multi-platform operating system, can be cross-platform operation.

Three, contrast

Oracle JDK and OpenJDK are popular tools in the market. Here is a comparison of the differences between the two.

1. OpenJDK releases are updated every three months, while Oracle JDK releases major releases every six months;

2. The OpenJDK is a fully open source reference model, but the Oracle JDK is an implementation of OpenJDK and is not fully open source;

Oracle JDK is more stable than OpenJDK. The implementation code of the Oracle JDK and OpenJDK is basically the same, but the Oracle JDK has more classes and bug fixes;

4. Oracle JDK provides better performance than OpenJDK relative to JVM performance and responsiveness;

5. The Oracle JDK does not provide long-term maintenance support for upcoming releases. Developers need to update to the latest version each time to get support for the latest release.

6. The Oracle JDK is licensed under the binary code License, whereas the OpenJDK is licensed under the GPL V2 license.

Five, the summary

In a Java interview, the interviewer will most likely ask about the differences between the two and make sure the candidate refreshes their knowledge during the interview. The differences between the Oracle JDK and OpenJDK should be clear from this comparison. That is the knowledge of this article, welcome to criticize.