I tried searching for answers to both of these questions, but wasn't able to find any. Here goes:
Q66 Shouldn't the default classpath be /foo/test instead of /foo to make this question correct, and to allow the program to compile and run without errors?
correct answer: "import xcom.B" added to TestXcom.java
foo
|
test |--TestXcom.java
|
xcom
|--A.class
|--B.class
package xcom;
public class A {public void go() { System.out.println("a.go");}}
package xcom;
public class B extends A {public void doB() {System.out.println("B.doB");}}
class TestXcom { public static void main(
String[] args) {
B b = new B(); b.doB(); b.go();
}
[ September 07, 2007: Message edited by: Emil Kastbjerg ]