Developers may need to know a product's version string for various purposes, depending on whether they are developing and deploying a product or downloading and integrating a product.
The following table explains how to interpret SDK/JRE release version string information.
Note that this convention was not in effect prior to the 1.3.0 feature release. The output of java -version has had the same format since 1.3.1
System Properties and the java -version Command
The output of the java -version command includes a product version identifier and a build indentifier. This output is determined by the values of several system properties, and those system properties can themselves be examined programmatically at runtime.
Numbering Format Specifications
Every SDK/JRE release that is shipped has a product version string and a build identifier associated with it. The general rules for setting either a version string or a build number string are as follows. For more specific rules and examples, see the following table:
Syntax NotationSyntax notation used in the following table is:
J2SE Release and Version String Information