Can an anonymous class be declared as implementing an interface and extending a class? Ans. An anonymous class may implement an interface or extend a superclass, but may not be declared to do both.
Download the Study24x7 App, so you can connect and collaborate.