Duvida em questao capitulo desenvolvimento

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

Porque assim você esta em um diretorio acima do definido no “package xcom”, por exemplo se você tirar essa package ai você consegue compilar com a opção B:
javac -classpath . B.java

Valeu, mas nao entendi ainda :frowning:

Qual o problema em set the current directory to xcom then invoke
javac -classpath . B.java

Segue o link: http://www.guj.com.br/posts/list/79147.java#419607

Melhorou um pouco, mas

b) Set the current directory to xcom then invoke
javac -classpath . B.java

o classpath mandando procurar no diretorio atual ele mesmo assim vai tentar achar outro xcom???

Abraços e valeu
João Sávio