posted 24 years ago
<PRE>
Which of the following statements is true?
a) An interface can contain a nested top-level inner class.
YES
b) An interface can contain a member inner class.
NOPE. Even without the static keyword it will be assumed to be static.
c) A member inner class can implement an interface.
TRUE
d) A static method can contain a local class.
TRUE. That type of class can be in any type of method.
e) A static method can contain a nested top-level class.
NO!! Methods can only have LOCAL classes.
is it c) and d) only.
</PRE>
Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD