What is true about anonymous inner classes ?
a)it can implement more than one interfaces
False, it can only implement one interface
b)it can implement only an interface
True or False, This one is poorly worded. If they mean that it can only implement an interface and not extend another class then it is false. If they mean that i can only implement interfaces (meaning it cant implement another class) then it is true because only interfaces are implemented, classes are extended. On the other hand, with an annonymous class you dont use either the extends or the implements keyword. I'm leaning towards the False answer, I think they want to klnow if an annonymous class can only be created froman interface not from another class.
c) it can only extend an abstract class
False, it can extend any class that isn't final.
d) it can extend any class
False, it can't extend a final class. Or, true it can extend any class that isn't final.
E) it can implement extend a class and implement an interface.
False, it can do one or the other but not both.
hope that helps
------------------
Dave
Sun Certified Programmer for the Java� 2 Platform