- Given the following directory structure:
x-|
|- FindBaz.class
|
|- test-|
|- Baz.class
|
|- myApp-|
|- Baz.class
And given the contents of the related .java files:
public class FindBaz {
public static void main(String[] args) { new Baz(); }}
In the test directory:
public class Baz {
static { System.out.println("test/Baz"); }
}
In the myApp directory:
public class Baz {
static { System.out.println("myApp/Baz"); }
}
If the current directory is x, which invocations will produce the output “test/Baz”? (Choose all that apply.)
A. java FindBaz
B. java -classpath test FindBaz
C. java -classpath .:test FindBaz
D. java -classpath .:test/myApp FindBaz
E. java -classpath test:test/myApp FindBaz
F. java -classpath test:test/myApp:. FindBaz
G. java -classpath test/myApp:test:. FindBaz
Não entendo por que B e E estão incorretas.
Desde já agradeço