From the course: Java SE 17 Developer (1Z0-829) Cert Prep

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Command-line utilities

Command-line utilities

- Java provides quite a lot of command line utilities to help with building and assembling programs. The exam seems to be interested in perhaps three of them, one perhaps more than the others. The three tools that we need to have a reasonable insight into for modules and modularization are java itself, the java command itself, which can actually enumerate all the observable modules and is able to describe a particular observable module if we ask it to. There's also the jar command, and that can show us the contents of a jar or module archive, and it can also describe the module that is inside a module archive, and that's in addition of course to its behavior for creating archives, exploiting archives, extracting the contents from them, and so forth. Then there's also jdeps. This one seems to be the more likely one to find a question on. This is literally Java dependencies, and it can show dependencies for a class file, even if it's not part of a module, a Java file, or a module, and…

Contents