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
How does enum work in java?
What are the 4 types of characters?
Mention some interfaces implemented by linked list in java.
How define set in java?
Which package is used for pattern matching with regular expressions?
Difference between final and effectively final ? Why is effectively final even required ?
What does jre stand for?
What are the important methods of java exception class?
Does the order of public and static declaration matter in main method?
java program with complete 4 oops concepts implemented example
Why there are some null interface in java? What does it mean?
What are measurable parameters?
What are instance variables?
What is the console in java?
What does sizeof return?