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

What does a method signature consist of?

515


What is early binding and late binding in java?

598


Explain reverse a linked list iterative solution in java?

504


What is treemap in java?

557


What is literal example?

566






Can java run on google chrome?

582


Can constructor be synchronized?

547


What is the final keyword denotes?

683


What exactly is methodology?

492


Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?

547


What is difference between arraylist and list in java?

589


What is an enumeration?

574


What are the advantages of autoboxing?

541


What is a ternary operator in java? What is an interface?

553


What does 3 dots mean in java?

526