Can we declare an anonymous class as both extending a class
and implementing an interface?
Answer Posted / devnaga
No. An anonymous class can extend a class or implement an
interface, but it cannot be declared to do both
| Is This Answer Correct ? | 26 Yes | 0 No |
Post New Answer View All Answers
Is oracle java 11 free?
What are the methods available in a class?
Why is java so important?
what is the final keyword denotes in java?
Can you access the private method from outside the class?
What all access modifiers are allowed for top class ?
What is identifier with example?
What is set and get methods in java?
What is a method in programming?
Can an interface extend a class?
What are the advantages of defining packages in java?
What are the basic control structures?
What is native method in java?
What are wrapped classes in java programming?
What flag up means?