Given the following directory structure
And given the contents of the
java files
In the
test directory:
In the myApp directory:
If the current directory is x, which invocation will produce the output "test/Baz"?
The book states option B is wrong:
B. java -classpath test FindBaz
I would like to know why the option B is wrong? Does the location of FindBaz must be defined in classpath (as a '.' in this case)? I don't think we do since the program class is in the current directory.
Thanks in advance.