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 is mnemonic code?
What is a lambda expression ? What's its use ?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
Explain super keyword in java.
Explain importance of inheritance in java?
Implement a stack with push (), pop() and min() in O(1) time.
Which api is provided by java for operations on set of objects?
Can we inherit a class with private constructor?
Can an abstract class be a final class?
Define jit compiler?
Can you override private or static method in java?
Is it possible to specify multiple jndi names when deploying an ejb?
Why is java multithreaded?
What is finalize method?
What is complexity and its types?