for me, question a) does not make sense. either the class is nested
or it is a top-level class. Changchun, would it be possible that you give a code example?
b) would be correct, if it meant a reference variable of the type "member inner class". but as i understand, they mean that the class is declared inside the interface, which is not possible.
c) correct. example:
private static void
test(){
class C{};
C c = new C();
Object o = new Object(){};
}
d) same confusion about "top-level" and "nested" as in answer a). Because there is no such thing as a "nested top-level class", you could answer "no", because it can't contain a class that is nested and top-level. But on the other hand, the set containing only "nested top-level classes" is the empty set, and the empty set is contained in every other set, so "nested top-level classes" are also contained in the set of things possible to use in interfaces, so the answer "true" is also correct.
So the answer can be true or false, both ansers are correct
David, where did you get the question from
And I hope the questions in the real exam don't need such a profund understanding of formal logic
[ March 03, 2006: Message edited by: Tilo Hemp ]