SaveMyCert
Log in
2 of 2 free questions left today·for 5 a day
Packaging and Deploying Java Code

Compiling and Running Java: Compact Source Files, JARs, jlink and Module Migration (1Z0-831)

20 min read1Z0-831 · Packaging and Deploying Java CodeUpdated

Compiling and running Java code means turning source into a program the launcher can start: directly from a .java file in source-file mode, from compiled classes on the class path, from a JAR, from modules on the module path, or from a custom runtime image built with jlink. Oracle 1Z0-831 objective 7.2 covers that whole path, including the Java 25 compact source files and instance main methods, multi-file source-code programs, non-modular and modular JARs, runtime images, and migrating an application to modules through the unnamed module and automatic modules. Almost every rule here shows up as an exact command, an exact launcher error, or a program whose output depends on which main method or which module was chosen, so this lesson pairs each rule with the command or code that proves it, all run on JDK 25.

You’ve read your 2 free 1Z0-831 lessons

Sign up free to read 48 more lessons — your progress is saved.

Source

This lesson covers the "Packaging and Deploying Java Code" domain of the official 1Z0-831 exam guide. Vendors revise their guides — check the source for the current version.

Sign up free to mark lessons complete, bookmark topics and track your exam readiness.

Spotted a mistake in this lesson?