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. - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
02 Jan 2024 11:17 AM study24x7 study24x7

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.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles