Java Developer Question: Download Java Developer PDF

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

Tweet Share WhatsApp

Answer:

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

Download Java Developer PDF Read All 63 Java Developer Questions
Previous QuestionNext Question
What is purpose of finalization in Java Programming?Which invokes a thread's run() method in Java Programming?