简体   繁体   中英

Mapping Java version numbers to major Java versions

I have a list of Java version numbers like this:

1.6.0_10
1.5.0_15

How do I map these version numbers to the major versions Java 5, Java, 6, and Java 7? I've found documentation on how to understand the long version numbers, but not on how the major versions were decided.

As @Austin said, the last part of the number for example .0_10 is the update number and not the major version. Here is the breakdown of "major" java version to version number:

Java 1 => 1.0 and 1.1

Java 2 => 1.2, 1.3, 1.4

Java 5 => 1.5

Java 6 => 1.6

Java 7 => 1.7

Java 1.X <=> Java X if X > 4

If X <= 4, who cares anymore?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM