Thursday, February 2, 2023

Java Development Kit (JDK) 8 and 9

 Java Development Kit (JDK) 8 and 9 are both versions of the Java SE (Standard Edition) platform. JDK 8 was released in March 2014 and introduced several new features such as the Lambda expressions, Streams, and the default methods in interfaces. JDK 9, released in September 2017, introduced major changes like the Java Platform Module System (JPMS), which improved the Java architecture and made it more modular. Additionally, JDK 9 also included various performance improvements, security updates, and new libraries. To summarize, JDK 8 mainly focused on adding new functionalities to Java, while JDK 9 aimed at improving the overall Java architecture.

 

Here are the main differences between JDK 8 and JDK 9:

  1. Modularity: JDK 9 introduced the Java Platform Module System (JPMS), which made Java more modular and helped in reducing the size of runtime images. JDK 8 lacked this feature.

  2. Performance: JDK 9 included performance improvements, such as reducing the startup time and footprint of Java applications.

  3. Security: JDK 9 introduced new security features and updates, such as enhanced control over unsigned JAR files and the ability to disable legacy algorithms in the cryptography framework.

  4. New libraries: JDK 9 introduced new libraries like the Process API and the HTTP/2 Client API, while JDK 8 focused more on adding functionalities to existing libraries.

  5. Deprecated features: JDK 9 removed some features that were considered outdated or unused, while JDK 8 did not make such changes.

Overall, JDK 9 aimed at improving the overall Java architecture and security, while JDK 8 focused on adding new functionalities to the language.

 

No comments:

Post a Comment