Memory, the JVM, packaging and tooling

What the machine under a Java program does: the heap and the stack, reachability with a measured allocation loop and -Xmx, and why a program calls System.gc only rarely. Modules follow, with module-info.java, requires, exports and java -m, then jar with a Main-Class manifest and the HTML javadoc writes. The last two lessons put the checks around the code: JUnit 5 with the console launcher, and the three linters on one file, with a pom.xml shown next to Maven and the reason each tool is run.

124 Memory and the garbage collector the heap and the stack, reachability, -Xmx, a measured allocation loop, System.gc and why not Open 125 Modules module-info.java, requires, exports, javac with --module-path, java -m Open 126 jar and javadoc jar cf, a Main-Class manifest, java -jar, javadoc -d, the HTML it writes Open 127 JUnit 5 with the launcher the launcher jar, a first test, assertions, junit execute --scan-classpath, the testing group Open 128 checkstyle, PMD, SpotBugs and Maven the three linters on one file, a pom.xml shown and not run, what each tool proves Open

Lessons