DEVFYI - Developer Resource - FYI

Can an anonymous class be declared as implementing an interface and extending a class?

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

211. Can an anonymous class be declared as implementing an interface and extending a class?

An anonymous class may implement an interface or extend a superclass, but may not be declared to do both.

(Continued on next question...)

Other Interview Questions