Oracle
1Z0-851 · Question #82
1Z0-851 Question #82: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-851 to reveal the answer and full explanation for question #82. The question stem and answer options stay visible for context.
Question
A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JAR named myLib.jar. Which three, taken independently, will allow the developer to use the Paper class while compiling the Book class? (Choose three.)
Options
- AThe JAR file is located at $JAVA_HOME/jre/classes/myLib.jar.
- BThe JAR file is located at $JAVA_HOME/jre/lib/ext/myLib.jar..
- CThe JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes
- DThe JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes
- EThe JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -cp /foo/myLib.jar/
- FThe JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -d /foo/myLib.jar
- GThe JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -classpath /foo/myLib.jar
Unlock 1Z0-851 to see the answer
You've previewed enough free 1Z0-851 questions. Unlock 1Z0-851 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.