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
How do you add an arraylist to an array in java?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
Does java linked list allow duplicates?
What is the use of bufferedreader?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
What methodology can be employed to locate substrings inside a string?
What are the approaches that you will follow for making a program very efficient?
What is the functionality of the stub?
What are the two ways in which thread can be created?
How to write custom exception in java?
How do you find the maximum number from an array without comparing and sorting?
How do you read and print a string in java?
how can you take care of mutual exclusion using java threads? : Java thread
What is the collections api?
How to sort list of list in java?