Close Menu
Şevket Ayaksız

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Orb Offers Continuous Internet Performance Insights

    Mayıs 10, 2025

    MSI Claw Handhelds See 10% FPS Increase with Intel’s Latest Update

    Mayıs 10, 2025

    Save $300 on Acer Swift Go 14 with 16GB RAM

    Mayıs 10, 2025
    Facebook X (Twitter) Instagram
    • software
    • Gadgets
    Facebook X (Twitter) Instagram
    Şevket AyaksızŞevket Ayaksız
    Subscribe
    • Home
    • Technology

      Orb Offers Continuous Internet Performance Insights

      Mayıs 10, 2025

      MSI Claw Handhelds See 10% FPS Increase with Intel’s Latest Update

      Mayıs 10, 2025

      Ryzen 8000 HX Series Brings Affordable Power to Gaming Laptops

      Nisan 10, 2025

      Today only: Asus OLED laptop with 16GB RAM drops to $550

      Nisan 6, 2025

      Panther Lake: Intel’s Upcoming Hybrid Hero for PCs

      Nisan 5, 2025
    • Adobe
    • Microsoft
    • java
    • Oracle
    Şevket Ayaksız
    Anasayfa » What is JPMS? Introducing the Java Platform Module System
    java

    What is JPMS? Introducing the Java Platform Module System

    By mustafa efeAğustos 4, 2024Yorum yapılmamış3 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Share
    Facebook Twitter LinkedIn Pinterest Email

    The module system introduced in Java 9 makes it easier to organize your code. Here’s a brief guide to working with modules in Java

    Until Java 9, Java’s top-level code organization element had been the package. Starting with Java 9 that changed: above the package now is the module. The module collects related packages together.

    The Java Platform Module System (JPMS) is a code-level structure, so it doesn’t change the fact that we package Java into JAR files. Ultimately, everything is still bundled together in JAR files. The module system adds a new, higher-level descriptor that JARs can use, by incorporating the module-info.java file.

    Large-scale apps and organizations will take advantage of modules to better organize code. But everyone will be consuming modules, as the JDK and its classes are now modularized.

    Why Java needs modules

    JPMS is the outcome of project Jigsaw, which was undertaken with the following stated aims:

    • Make it easier for developers to organize large apps and libraries
    • Improve the structure and security of the platform and JDK itself
    • Improve app performance
    • Better handle decomposition of the platform for smaller devices

    It’s worth noting that the JPMS is a SE (Standard Edition) feature, and therefore affects every aspect of Java from the ground up. Having said that, the change is designed to allow most code to function without modification when moving from Java 8 to Java 9. There are some exceptions to this, and we’ll note them later in this overview.

     

     

    The chief idea behind a module is to allow the collection of related packages that are visible to the module, while hiding elements from external consumers of the module. In other words, a module allows for another level of encapsulation.

    In practical terms, modules help manage dependencies more efficiently. For instance, in a large codebase, you can define which parts of your code are exposed to other modules and which parts are internal. This is done through the module-info.java file, where you specify the module’s name, its dependencies, and the packages it exports.

    Another significant advantage of the module system is that it can help with reducing the size of applications. By knowing exactly which parts of the code are necessary, the Java runtime can strip away unnecessary parts, which is particularly useful for smaller devices and cloud deployments.

    Overall, the introduction of JPMS has added a powerful tool for developers, helping to create more maintainable, secure, and performant Java applications.

    Post Views: 119
    java Programming Languages Software Development
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    mustafa efe
    • Website

    Related Posts

    The Cot framework simplifies web development in Rust

    Nisan 29, 2025

    IBM Acquires DataStax to Enhance WatsonX’s Generative AI Strength

    Nisan 29, 2025

    Google Launches Free Version of Gemini Code Assist for Individual Developers

    Nisan 29, 2025
    Add A Comment

    Comments are closed.

    Editors Picks
    8.5

    Apple Planning Big Mac Redesign and Half-Sized Old Mac

    Ocak 5, 2021

    Autonomous Driving Startup Attracts Chinese Investor

    Ocak 5, 2021

    Onboard Cameras Allow Disabled Quadcopters to Fly

    Ocak 5, 2021
    Top Reviews
    9.1

    Review: T-Mobile Winning 5G Race Around the World

    By sevketayaksiz
    8.9

    Samsung Galaxy S21 Ultra Review: the New King of Android Phones

    By sevketayaksiz
    8.9

    Xiaomi Mi 10: New Variant with Snapdragon 870 Review

    By sevketayaksiz
    Advertisement
    Demo
    Şevket Ayaksız
    Facebook X (Twitter) Instagram YouTube
    • Home
    • Adobe
    • microsoft
    • java
    • Oracle
    • Contact
    © 2025 Theme Designed by Şevket Ayaksız.

    Type above and press Enter to search. Press Esc to cancel.