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 a map? What are the implementations of map?
What is the difference between heap memory and stack memory?
What is difference between overloading and overriding in java?
How would you format a date in java? I.e. In the ddmmyyy format?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
What is binary tree in java?
What is ternary operator? Give an example.
Is call by reference possible in java?
What are the ways to instantiate the class class?
What is parsing and its types?
What is a key in java?
What happens if constructor is private?
Difference between string, stringbuffer and stringbuilder?
What are basic data types?
What are the basic control structures?