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 are the features in java?

574


In a container there are 5 components. I want to display the all the components names, how will you do that one?

603


What do you mean by platform independence? What is an interface?

563


Explain the difference between abstract classes and interfaces in java?

594


what is predefined function in java?

535






I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?

584


What is a constructor, constructor overloading in java?

524


What is formatted output in java?

496


What is lambda programming?

491


What does microservices mean?

528


Difference between throw and throws?

616


Can a static member function access member variable of an object?

554


Why arraylist is used in java?

547


How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?

753


What does string mean in java?

627