問題詳情

78A developer is creating a class Book, that needs to access class Paper. The Paper class is deployed in a JARnamed myLib.jar. Which three, taken independently, will allow the developer to use the Paper class whilecompiling 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.jarBook.java7. 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

參考答案

無參考答案

內容推薦

內容推薦