Can an anonymous class be declared as implementing an interface and extending aclass

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

Showing Answers 1 - 1 of 1 Answers

sargam

  • Aug 17th, 2018
 

Yes the anonymous Inner class can extend a class or can implement an interface but not both at a time

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions