About Question enthuware.ocpjp.ii.v11.2.3441 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
bjpeter
Posts: 9
Joined: Thu Jun 27, 2019 3:42 pm
Contact:

About Question enthuware.ocpjp.ii.v11.2.3441 :

Post by bjpeter »

Is --class-path a valid option for jdeps? I only see -cp and -classpath in the documentation:

https://docs.oracle.com/javase/8/docs/t ... jdeps.html

admin
Site Admin
Posts: 10065
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.3441 :

Post by admin »

Yes, it is valid. Try running java -help on the command line. It shows, among other things:

Code: Select all

  -cp <class search path of directories and zip/jar files>
  -classpath <class search path of directories and zip/jar files>
  --class-path <class search path of directories and zip/jar files>
Anyway, why are you using java 8 documentation while studying for Java 11 exam?
If you like our products and services, please help us by posting your review here.

bjpeter
Posts: 9
Joined: Thu Jun 27, 2019 3:42 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.3441 :

Post by bjpeter »

I apologize. I should have looked at the URL before posting.

kevvvvyp
Posts: 4
Joined: Wed Jun 05, 2019 3:22 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.3441 :

Post by kevvvvyp »

Can we remove the answer from the question?
"Based on the given options, our guess is that in this question they are just checking whether you know that -cp, -classpath, and --class-path are equivalent options and the nonmodular jars should be put on classpath instead of module-path."

admin
Site Admin
Posts: 10065
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.3441 :

Post by admin »

The only purpose of this question is to sensitize the student about jdeps options. Most students get put off by seeing a question that is seemingly off topic and that is why we feel it is important to calm the nerves by explaining why this question is there.
If you like our products and services, please help us by posting your review here.

ewebxml
Posts: 78
Joined: Sun Jun 30, 2013 10:04 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.3441 :

Post by ewebxml »

For the question
Which jdeps option(s) is/are used to include dependent nonmodular jar files?

Choice b says

Code: Select all

jdeps --upgrade-module-path file1.jar;fie2.jar app.jar
----- ----- ----- -----
I believe it should be

Code: Select all

jdeps --upgrade-module-path file1.jar;file2.jar app.jar

Please confirm.

admin
Site Admin
Posts: 10065
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.ii.v11.2.3441 :

Post by admin »

Right. It should be file instead of fie!
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 121 guests