Skip to main content
PreparationZone Logo
PreparationZone
Back to Java

Java · Hard · Pro

module-path vs classpath — how does the JVM resolve types in Java 9+?

JavaModules & SecuritySenior
Model answerPreview

module-path vs classpath

The classpath loads unnamed/automatic modules with weak boundaries. The module-path loads named modules with readable graph resolution—types from non-exported packages are inaccessible…