Modules in One Lesson
summary
A live-coding tour shows how to convert a simple jar into a module, then refactor it into two modules (a two-module leftpad refactor), compile and run them on the module path, and observe the compiler/runtime errors when a required module is missing. Demo uses JShell module reflection to inspect java.base and java.sql, explains the JDK split into ~75 modules (28 standard), forbids cycles, and builds custom runtimes with JMod/JLink packing producing a 48MB JRE (15MB compressed); linking generally works though one demo run fails briefly.
AI-written summary · about
