Which allows B.java to compile? A. Set the current directory to xcom then invoke javac B.java B. Set the current directory to xcom then invoke javac -classpath . B.java C. Set the current directory to test then invoke javac -classpath . xcom/B.java D. Set current directory to test then invoke javac -classpath xcom B.java E. Set current directory to test then invoke javac -classpath xcom:. B.java

The answer is C. But if we give -classpath . the test directory will be searched for the .class file. The answer should be D. Can anyone help me understand where I am going wrong? thank you [ September 02, 2008: Message edited by: Sirisha Ghatty ]