Why does the command (on the Windows command-line) java -version
return Java version "1.7.0" and not Java version 7.0? What does 1 mean?
Asked
Active
Viewed 312 times
-1

Peter Mortensen
- 30,738
- 21
- 105
- 131

PlainOldProgrammer
- 2,725
- 5
- 22
- 30
-
it is actual version of java, just like 1.3 1.4 1.5 1.6 1.7 and so on. – Adem Dec 09 '14 at 22:42
-
I understand that the version is the next part of the '1', but I don't understand why uses the '1' because it causes confusion by thinking that the version is java 1.7 not java 7 in stric terms. – PlainOldProgrammer Dec 09 '14 at 22:46
3 Answers
1
When Java 1.2 came out Sun decided to market it as "Java 2", presumably to differentiate from Microsoft, as the lawsuit was still on at the time. They've followed suit ever since, so 1.7 is now "Java 7".

user207421
- 305,947
- 44
- 307
- 483
0
It means that this is the seventh major release of java, but the version number is 1.7. Version numbers don't have to increment in integral units for major releases.

Jon Kiparsky
- 7,499
- 2
- 23
- 38
0
Because this is actual Java version. Check http://en.wikipedia.org/wiki/Java_version_history

mleko
- 11,650
- 6
- 50
- 71