JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • Introduction to Modules: Why They Are Needed

    JAVA 25 SELF
    60 level,0 lecture
    We break down why Java 9 introduced the module system JPMS: what’s wrong with the “ classpath-party,” how modules introduce visibility boundaries at the container level, what module-info.java is, and how to work with the module, exports, requires, opens, and uses/ provides directives. We’ll discuss benefits (encapsulation, explicit dependencies, security, jlink), use cases (including java.base, java.sql), useful nuances, and common migration mistakes (a forgotten exports, a missing requires, duplicate module names).
    Open
  • module-info.java: syntax, creating modules

    JAVA 25 SELF
    60 level,1 lecture
    We examine what the module-info.java file is, where it lives in a project, and how to declare a module using the module keyword. We learn how to export an API via exports, add dependencies via requires, and also look at additional directives ( opens, uses, provides ... with). The lecture includes examples, module naming rules, a practical walkthrough of project structure, and common mistakes in modular builds.
    Open
  • Encapsulation via modules: export and import

    JAVA 25 SELF
    60 level,2 lecture
    How Java 9+ added modular encapsulation on top of classes and packages: even public classes are hidden until a package is explicitly exported via exports in module-info.java. We break down how to wire dependencies with requires, how to restrict visibility with exports to, how the module level differs from private/ public, and which compilation errors (for example, “package ... is not visible”, “cannot access ...”) hint that you forgot exports or requires.
    Open
  • Splitting a Project into Modules: Best Practices

    JAVA 25 SELF
    60 level,3 lecture
    A practical guide to modular architecture in Java: when and why to split code into modules, common patterns (onion architecture, api/ impl split, test modules), configuring dependencies via module-info.java and the requires/ exports keywords, working examples of a project with 3 modules, integration with Maven/ Gradle and IntelliJ IDEA, plus a breakdown of typical mistakes (cyclic dependencies, non-exported packages, incorrect --module-path).
    Open
  • Building multi-module projects: Maven, Gradle, IDEA

    JAVA 25 SELF
    60 level,4 lecture
    How to build a modular project in Java: the difference between classpath and module-path, when to use the --module-path flag, how to set up a multi-module structure in Maven and Gradle, and how to run everything from IntelliJ IDEA. We will show the module layout with module-info.java, dependencies via requires/ exports, plugin configuration, and common build errors.
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy