Given the following directory structure:
And given the contents of GetJar.java and Foo.java:
If the current directory is "test", and myApp/Foo.class is placed in a JAR file called MyJar.jar
located in
test, which set(s) of commands will compile GetJar.java and produce the output 8?
(Choose all that apply.)
A. javac -classpath MyJar.jar GetJar.java
java GetJar
B. javac MyJar.jar GetJar.java
java GetJar
C. javac -classpath MyJar.jar GetJar.java
java -classpath MyJar.jar GetJar
D. javac MyJar.jar GetJar.java
java -classpath MyJar.jar GetJar
the answer is option A, i have tried and it works perfectly fine if the
myapp has got a class
Foo.class. can anyone please confirm if there has been some mistake found in the question.