Close Menu
Şevket Ayaksız

    Subscribe to Updates

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

    What's Hot

    Deno’s Latest Update Adds OpenTelemetry Support

    Mayıs 31, 2025

    Neo browser reimagines search with built-in AI assistant

    Mayıs 27, 2025

    Google unveils AI Ultra subscription for power users

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

      Unlock Desktop GPU Power with Asus ROG XG Station 3

      Mayıs 27, 2025

      OpenSilver Expands Cross-Platform Reach with iOS and Android Support

      Mayıs 27, 2025

      Introducing AMD’s 96-Core Threadripper 9000 CPUs: A New Era in Computing

      Mayıs 22, 2025

      AMD’s Radeon RX 9060 XT Delivers Better Value Than Nvidia’s RTX 5060 Ti

      Mayıs 22, 2025

      MSI’s Claw A8 Introduces AMD-Powered Gaming Handheld

      Mayıs 22, 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: 125
    java Programming Languages Software Development
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    mustafa efe
    • Website

    Related Posts

    Deno’s Latest Update Adds OpenTelemetry Support

    Mayıs 31, 2025

    Empowering Firebase Studio with Agentic AI for Smarter App Development

    Mayıs 27, 2025

    Google I/O 2025 Puts Spotlight on AI Breakthroughs and Gemini Advancements

    Mayıs 27, 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.