Is Java 1.6 the same as JDK 6?

后端 未结 4 1377
耶瑟儿~
耶瑟儿~ 2021-02-05 01:47

I\'m taking a computer science course and the syllabus says download java 1.6. I don\'t find a java 1.6, everything says JDK 6. When I googled java 1.6 I found this link:

相关标签:
4条回答
  • 2021-02-05 02:11

    Yes, Sun makes use of dual naming convention for the same thing. One naming convention if for the product and one is for the developer. The official documentation mentions:

    Both version numbers (1.6.0 and 6) are used to identify this release of the Java Platform. Version 6 is the product version, while 1.6.0 is the developer version. The number 6 is used to reflect the evolving level of maturity, stability, scalability and security of Java SE.

    See J2EE or JEE, Java 5 or Java 1.5 - Is SUN Crazy? for more on this madness.

    Madness...? This is Sun!

    0 讨论(0)
  • 2021-02-05 02:17

    Yes, they're the same. See this page for a more detailed explanation of the version numbering.

    0 讨论(0)
  • 2021-02-05 02:32

    They are the same. Here is Sun's discussion of that and other naming discrepancies.

    0 讨论(0)
  • 2021-02-05 02:34

    No, but yes.

    JDK means Java Development Kit 6.

    It's an implementation of the Java SE 6 platform as specified by JSR 270 together with a set of development tools (the implementation of the platform without the development tools is called the JRE: Java Runtime Environment).

    For some reason the internal version number of the JDK 6 is "1.6" (or 1.6.0_17 for example). But that's only the internal version number of that piece of software. The Java platform itself is simple "Java SE 6" (no "1." anywhere to see).

    So to re-iterate:

    • "Java 6" usually means "Java SE 6"
    • "Java SE 6" is the "Java Standard Edition 6 platform", which is a specification of what the platform looks like
    • "JDK 6" is the "Java Development Kit 6", which is a development kit for Java SE 6
    • The internal version number of the software components that make up JDK 6 is "1.6.x"
    • "JDK 1.6" doesn't exist, strictly speaking, but is usually written to refer to JDK 6
    • "Java 1.6" doesn't exist, strictly speaking, but is usually written to refer to Java SE 6

    So if you're told to install "Java 1.6" for a software development course, then the JDK 6 is definitely the correct piece of software to install.

    Update: yes, all of the above is still correct after Oracle bought Sun and Java 7 (specified in JSR 336) was released. Java 7 still uses "1.7.0" as the internal version number.

    0 讨论(0)
提交回复
热议问题