Thanks Serge.i have got a better picture now.One more thing iamnot able to understand one questn of Kathysierra.related to directory structure(Ch-10)
Default classpath
/foo
foo has a subdirectory
test which has a subdirectory
xcom.
xcom contains two files, one A.class and B.java.
And two files
package xcom;
public class A
{
}
package xcom;
public class B extends A
{
}
Which allow B.java to compile�.
Options given are
A.Set current dir to xcom and then invoke
Javac B.java
B. Set current dir to xcom and then invoke
Javac -classpath . B.java
C. Set current dir to test and then invoke
Javac -classpath . xcom/B.java
D. Set current dir to test and then invoke
Javac -classpath xcom:. B.java
Correct answer they are saying is c...
why option B is not correct?(though you are setting classpath to . , so i think you being in xcom dir, you sould be able to use classes in xcom...)
Also what does option D means?i.e does option D makes any sense?