Can we declare an anonymous class as both extending a class
and implementing an interface?

Answer Posted / imtiyaz

upto my knowledge anonymous class can not extend or
implement another class if so can anyone give the example

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do listeners work?

734


Do I need java for windows 10?

752


How to change the priority of thread or how to set the priority of thread?

822


How do I convert a string to an int in java?

774


What is dynamic binding(late binding)?

786


If we don’t want some of the fields not to serialize how to do that?

772


What is tcp and udp?

773


What is hashmap and map?

736


Can we have multiple classes in a single file?

716


What is difference between local variable and global variable?

691


What is final keyword?

867


What is the difference between C++ and Java and your preferences?

828


What is difference between hashset and hashmap?

776


What is visibility mode?

720


What is the use of arraylist in java?

772