Can we declare an anonymous class as both extending a class and implementing an interface?

Can we declare an anonymous class as both extending a class and implementing an interface?

No. An anonymous class can extend a class or implement an interface, but it cannot be declared to do both 

By:Jalees
Date:2014-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher