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
What are reference variables in java?
How to remove the trailing spaces from a string?
Why java is made?
Differentiate between a class and an object.
When throws keyword is used?
What are nested classes in java?
What is method overloading in JAVA? Why is it not present in C ?
Is void a keyword in java?
Can you pass by reference in java?
What is backdrop?
I want to persist data of objects for later use. What’s the best approach to do so?
What is math in java?
What do you mean by formatting?
What is a module function?
How do you sing an Applet ?