Can we declare an anonymous class as both extending a class
and implementing an interface?
Answer Posted / devarathnam
Hi... Yes we can declare anonymous class either extending a
class or implementing an interface but not both.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
What are white spaces in java?
What are the difference between string, string builder, and string buffer in java?
What are the advantages of exception handling in java?
What is yield () in java?
What is space character in java?
How do you replace all in word?
give an example for encapsulation?
What is the use of inner class?
What does jenkins do?
Explain the concept of hashtables?
Can we execute a program without main() method?
What is the parse method in java?
What do you mean by garbage collection used in java?
What are peerless components?