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

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 »

As the problem statement says your application classes are in current directory, you need the current directory in the classpath. dot implies current directory.

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

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

Post by zunayeed »

after the dot, there is a semicolon. why is 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 »

path separator. to separate the two paths - . and abc.utils.jar

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests