Hello Jeanne and Scott,
This is regard to the book OCP Oracle Certified Professional
Java SE 11 Programmer I Study Guide: Exam 1Z0-815.
I think that this question is wrong. All A, B, D, and E should be correct options.
Question: Which are true of the --module option? (Choose all that apply.)
Choices:
A. It is an option on the javac command.
B. It is an option on the java command.
C. It is an option on the jar command.
D. It is an option on the jdeps command.
E. It has a short form of -m.
F. It has a short form of -p.
The exam states that the correct choices are: B and E
But I chose A, B, D, E and got A, D wrong. The flag --module exists in both javac and jdeps.
My java version: java -version: openjdk version "11.0.7" 2020-04-14
javac --module: --module <module-name>, -m <module-name>---Compile only the specified module, check timestamps
jdeps --module: -m <module-name> --module <module-name>---Specify the root module for analysis