Given the default classpath /foo
and this structure:
foo
|
test
|
xcom
|--A.class
|--B.java
And these two files:
package xcom;
public class A { }
package xcom;
public class B extends A { }
Which allows B.java to compile? (Choose all that apply.)
A resposta é essa:
C. Set the current directory to test then invoke
javac -classpath . xcom/B.java
Mas ao chamar javac -classpath . xcom/B.java eu nao estaria procurando A.class no diretorio atual (test)???
A B tb nao estaria correta???
B. Set the current directory to xcom then invoke
javac -classpath . B.java