Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (3.4k points)

Are there any crucial differences between Oracle and OpenJDK?

For example, garbage collection and other JVM parameters the same?

Does GC work differently between the two?

1 Answer

0 votes
by (46k points)
  • There is no major difference between Oracle and OpenJDk. The OpenJDK project is mostly based on HotSpot source code donated by Sun and maintained by Oracle.

Here’s a link to an on Oracle blog.post

Q: What is the difference between the source code found in the OpenJDK repository, and the code you use to build the Oracle JDK?

A: It is very close - our build process for Oracle JDK releases builds on OpenJDK 7 by adding just a couple of pieces, like the deployment code, which includes Oracle's implementation of the Java Plugin and Java WebStart, as well as some closed source third-party components like a graphics rasterizer, some open source third party components, like Rhino, and a few bits and pieces here and there, like additional documentation or third-party fonts. Moving forward, we intend to open source all pieces of the Oracle JDK except those that we consider commercial features such as JRockit Mission Control (not yet available in Oracle JDK) and replace encumbered third-party components with open source alternatives to achieve closer parity between the code bases.

·         Yes, the garbage collection and other JVM parameters are same.

·         The performance of GC is same in both.

Related questions

0 votes
1 answer
asked Jul 15, 2019 in Java by amy12 (1.1k points)
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...