78 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.) 
 1. The JAR file is located at $JAVA_HOME/jre/classes/myLib.jar. 
 2. The JAR file is located at $JAVA_HOME/jre/lib/ext/myLib.jar. 
 3. The JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar/Paper.class. 
 4. The JAR file is located at /foo/myLib.jar and a classpath environment variable is set that includes /foo/myLib.jar. 
 5. The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -cp /foo/myLib.jar/Paper Book.java 
 6. The JAR file is located at /foo/myLib.jar and the Book class is compiled using javac -d /foo/myLib.jar Book.java 7. The JAR file is located at foo/myLib.jar and the Book class is compiled using javac -classpath /foo/myLib.jar Book.java
(A) 123
(B) 247
(C) 567
(D) 147

答案:登入後查看
統計: A(3), B(6), C(8), D(1), E(0) #2194155