-5

When I want to install JDK8 on my Windows 7 (32 bit) It installed in

C://Program Files/Java/jdk1.8.0_211

Why is the version 1.8? Shouldn't it be 8?

cokeman19
  • 2,405
  • 1
  • 25
  • 40

2 Answers2

2

As per Java version history 1.8 is the developer version number and 8 is the product version number. Both numbers represent the same Java version, this split happened in Java 5:

Both version numbers "1.5.0" and "5.0" are used to identify this release of the Java 2 Platform Standard Edition. Version "5.0" is the product version, while "1.5.0" is the developer version. The number "5.0" is used to better reflect the level of maturity, stability, scalability and security of the J2SE.

Karol Dowbecki
  • 43,645
  • 9
  • 78
  • 111
  • So why do I use "ArrayList arr = new ArrayList();" I get error? Errors are: Multiple markers at this line - Syntax error, parameterized types are only available if source level is 1.5 - Line breakpoint:Kelas1 [line: 9] - main(String[]) - Syntax error, parameterized types are only available if source level is 1.5 - Debug Current Instruction Pointer – Mr ComputeR Dec 06 '19 at 15:49
  • 2
    Because you have wrong compiler level selected and you are compiling to Java 1.4 or lower despite running on Java 8. What this has to do with your original question? – Karol Dowbecki Dec 06 '19 at 15:52
  • How could I fix it? – Mr ComputeR Dec 06 '19 at 15:53
  • 2
    Check your IDE settings. – Stephen C Dec 06 '19 at 15:55
0

Sorry if it's confusing. 1.8 and 8 are the same. Check out: https://codenotfound.com/java-download-install-jdk-8-windows.html