jlink to assemble and optimize a set of modules and their dependencies into a custom runtime image.
module - class/jar directory structure
javac - source code to class (bytecode)
jar - class(bytecode) to jar
B. javac, jlink correct
D. jar, jlink - failed
The correct answer is B. To create and run a custom runtime image from Java source files, you need to use the `javac` and `jlink` commands.
First, you use the `javac` command to compile the Java source files into class files. Then, you use the `jlink` command to create a custom runtime image that includes only the modules required by your application. Once the custom runtime image is created, you can run your application using the `java` command from within the custom runtime image.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ASPushkin
2 months agod7bb0b2
12 months agoStavok
1 year, 5 months agobelal97
1 year, 5 months agoKiraguJohn
1 year, 5 months agobelal97
1 year, 5 months ago