Oracle
1Z0-850 · Question #8
1Z0-850 Question #8: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-850 to reveal the answer and full explanation for question #8. The question stem and answer options stay visible for context.
Question
Given:
Directory structure:
projects
|__src
|__foo
|__classes
A file Clock.java in the /projects/src/foo directory
The working directory /projects/src
The class Clock in package foo
Which command-line compiler invocation will create a foo directory within the classes directory, and then place the compiled Clock.class within that directory?
Options
- Ajavac -directory ../classes/foo foo/Clock.java
- Bjavac -d ../classes/foo Clock.java
- Cjavac -d ../classes/foo foo/Clock.java
- Djavac -D foo/Clock.java
- Ejavac -d ../classes foo/Clock.java
Unlock 1Z0-850 to see the answer
You've previewed enough free 1Z0-850 questions. Unlock 1Z0-850 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.