About Question enthuware.ocpjp.i.v11.2.3025 :

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

Moderator: admin

Post Reply
zunayeed
Posts: 10
Joined: Fri Jun 28, 2019 10:58 am
Contact:

About Question enthuware.ocpjp.i.v11.2.3025 :

Post by zunayeed »

Hi,
In the correct answer, why is there .; after classpath : java -classpath .;abc.utils.jar Main

brintal
Posts: 6
Joined: Sun Jan 23, 2022 8:43 am
Contact:

Re: About Question enthuware.ocpjp.i.v11.2.3025 :

Post by brintal »

Same question. Anyone got an answer for that?

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

Re: About Question enthuware.ocpjp.i.v11.2.3025 :

Post by admin »

That is the path separator. Observe this line in the problem statement:
(Assume that abc.utils.jar and your application classes are in current directory.)

So, you need both - the current directory and the module jar, in your classpath.

raphaelzintec
Posts: 167
Joined: Sun Apr 21, 2024 10:43 am
Contact:

Re: About Question enthuware.ocpjp.i.v11.2.3025 :

Post by raphaelzintec »

can enthuware team please answear to my questions because i don't use forum to waste time, or critisize your amazing job, i just use the forum to improve my knowledge in java, i'm not the smartest

so here is my question regarding this topic

why guys do you use .;abc.utils.jar and not ".;abc.utils.jar" because i learned that on linux you use : without "" but on windows you use ; with ""

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

Re: About Question enthuware.ocpjp.i.v11.2.3025 :

Post by admin »

There is no particular reason to use one style over the other. Commands specified on the command line are OS/platform dependent and you should be aware of both styles.

raphaelzintec
Posts: 167
Joined: Sun Apr 21, 2024 10:43 am
Contact:

Re: About Question enthuware.ocpjp.i.v11.2.3025 :

Post by raphaelzintec »

thank you

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 13 guests