• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Sybex 1Z0-815, Mock test 2, question ID tb584704.JaSE11PrgISG.be2.19

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Marshal
Posts: 71628
312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I couldn't find a --module option for the java tool. I did find it for jdeps. I presume you know where to find the errata and you have checked them.
 
Dimitri Nguyen
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:I couldn't find a --module option for the java tool. I did find it for jdeps. I presume you know where to find the errata and you have checked them.



Hi Ritchie, you can find this phrase in the link that you have posted.

Executes the main class in a module specified by mainclass if it is given, or, if it is not given, the value in the module. In other words, mainclass can be used when it is not specified by the module, or to override the value when it is specified.



But it is true that it's not an obvious command if we use the flag.

I didn't see this question on the errata. That's why I am reporting now. Cheers!
 
Campbell Ritchie
Marshal
Posts: 71628
312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Dimitri Nguyen wrote:. . . Hi Ritchie, you can find this phrase . . .

Have found it now. Well done finding that
 
author & internet detective
Posts: 40354
819
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Confirmed and added to the errata. While these options aren't on the exam for these commands, they do exist!
 
Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic