Home > Enterprise >  If someone's code says java version 1.8 in pom, does that mean that it is JDK 8?
If someone's code says java version 1.8 in pom, does that mean that it is JDK 8?

Time:04-06

I am looking at someone else's code and the pom.xml says java version 1.8.

I need to know the version of the JDK. I know they can be the same, but some sites say they are different?

Sorry for the newb question and thanks

I tried googling this and couldn't find an answer

CodePudding user response:

Yes, if pom.xml has properties -> java.version as 1.8 or plugin -> source as 1.8 means that the project will be using JDK8 compiler and language version is Java 8 for the same.

CodePudding user response:

Yes, in Java, 1.8 == 8.

To emphasize Java’s goal of extreme backward compatibility, the version numbering was 1.0.

Over the years, the versions became known unofficially by their second number. So yes, technically what was released as version 1.8 is more affectionately known as Java 8.

Officially, the “1.” was dropped with Java 9. See JEP 223: New Version-String Scheme.

  •  Tags:  
  • java
  • Related