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
What are the features in java?
In a container there are 5 components. I want to display the all the components names, how will you do that one?
What do you mean by platform independence? What is an interface?
Explain the difference between abstract classes and interfaces in java?
what is predefined function in java?
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
What is a constructor, constructor overloading in java?
What is formatted output in java?
What is lambda programming?
What does microservices mean?
Difference between throw and throws?
Can a static member function access member variable of an object?
Why arraylist is used in java?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
What does string mean in java?