|
Post by joitarani333 on May 2, 2024 4:06:37 GMT
Unnamed modules are a lifeline for all code that does not belong to any module on the modulepath. All JAR files loaded via classmate automatically become part of the unname module. If previously everything revolve around the classpath the universal path along which the JVM searche for all classes and libraries now module path is a must-have and is use everywhere offering a more strict and structure separation of dependencies and modules. Is a self-contained executable package that contains code and data and also Turkey Phone Number List describes its dependencies on other modules. The moduleinfo.java file is the center of modules in Java. It defines the module its dependencies exporte packages and services use and provide. Creating this file is the first step to creating a module module example. My Module requires exports example. My Module ape uses example My Module My Service provides example. My Moodley Service with requires indicates that this module depends on another module. For example requires java. Says that the module need the java.sql module to work. exports makes packages available to other to control the level of access to application components improving encapsulation.
|
|