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
Can an integer be null java?
Why is the singleton pattern considered to be an anti pattern?
Is 64bit faster than 32 bit?
How do you declare an empty string?
How can we create objects if we make the constructor private ?
how to write a server program and sending the mails to the server using smtp protocol please help me
Explain about field hiding in java?
What is super keyword explain with example?
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
Can a class be private in java?
what is heap memory?
What is complexity and its types?
Why multiple inheritance is not supported by java?
Can a class be defined inside an interface?
What is broken and continue statement?